I installed, configured, and tested SSH under Win7+vmware with two Ubuntu virtual machines.
- Install Openssh-server on the server side.
sudo Install Openssh-server # seemingly sudo apt-get installs SSH can be installed SSH client+server
- Generate the RSA key on the client side (typically the default is installed Ssh-keygen), enter the following command, note: The file name to use the absolute path (can default), passphrase is the use of the secret key login with the password (can be empty).
Ssh-keygen sudo
- Copies the public key generated in the client (by default in ~/.ssh/id_rsa.pub) to the ~/.ssh/authorized_keys of the server.
- You can use SSH to log in to the server by running the following command in the client. If the key is generated when the passphrase set, you need to enter the passphrase, if not set passphrase, you can password-free login.
SSH [Email protected]_ip_address
Installing and configuring SSH under VMware + ubuntu16.04 Linux