I will show you how to install and use Vagrant on Windows 10. First, we will install the required tools and then we will run and up Vagrant. How to add personal cert to vagrant boxes. if you dont like doing vagrant ssh box, but want to do ssh to the box directly instead vagrant ssh-config box >> /.ssh/config or push your key on provisioning
まず最初に、Vagrantはゲストボックスにvagrantユーザーを作成し、そのユーザーを使用してSSHを実行します。 以前の人々が言っ たように、デフォルトでは、ホストのポート2222からゲストのポート22にトラフィックを転送します(vagrant upを使用すると、その ... The port on the guest that SSH is running on. This is used by some providers to detect forwarded ports for SSH. For example, if this is set to 22 (the default), and Vagrant detects a forwarded port to port 22 on the guest from port 4567 on the host, Vagrant will attempt to use port 4567 to talk to the guest if there is no other option.
Vagrant 1.8.5 sets the permissions on ~vagrant/.ssh/authorized_keys to 0644 (world-readable) when replacing the insecure public key with a newly generated one. Since sshd will only accept keys readable just by their owner, vagrant up returns an error, since it cannot connect with the new key and it already removed the insecure key. コマンドプロンプトでsshコマンドを実行すると、認証する必要なくコマンドプロンプトのままSSH接続されます。 > vagrant ssh TeraTermなどのSSHクライアントでログインする方法(パスワード認証) TeraTermなどのSSHクライアントで、ユーザ名『vagrant』でログインします。 Vagrant is a tool for building and distributing development environments. - hashicorp/vagrant