MacにてVagrantを使用しcentOS7.0を使用しています。
Cyberduckを使用して仮想環境にファイルを置きたいのですがIPの設定がうまくいきません。
vagrant ssh-config --host 192.168.33.10
のコマンドでIPをかえれる認識なのですが、
このコマンドの直後に
vagrant ssh-config
をしてもHostがdefaultに戻ってしまいます。
理由がわかる方いらっしゃいますか?
mbp:centos70 kuniatsu$ vagrant ssh-config --host 192.168.33.10 Host 192.168.33.10 HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile /Users/kuniatus/MyVagrant/centos70/.vagrant/machines/default/virtualbox/private_key IdentitiesOnly yes LogLevel FATAL mbp:centos70 kuniatsu$ vagrant ssh-config Host default HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile /Users/kuniatus/MyVagrant/centos70/.vagrant/machines/default/virtualbox/private_key IdentitiesOnly yes LogLevel FATAL
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。