Vagrantで直接sshコマンドでSSHしたい時のコマンドを生成するためのNipp
以下の入力はvagrant ssh-configを実行すると得られる。
code:入力
Host default
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /your/directory/vm1/.vagrant/machines/default/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL
code:出力
ssh -i /your/directory/vm1/.vagrant/machines/default/virtualbox/private_key -p 2222 vagrant127.0.0.1
上記の出力を打つことでvagrant sshの代わりに、マニュアルでsshコマンド叩ける。