Linux Open SSH Service
- First update the source
sudo apt-get update
- Installing the SSH Service
sudo apt-get install Openssh-server
- Detect if it is started
Ps-e | grep ssh
See the word ssh, instructions have been started, if not started manually
/etc/init.d/ssh start
- Configure Ssh-server, the configuration file is located in/etc/ssh/sshd_config, the default port is 22, for security, general customization to other ports, and then restart
Sudo/etc/init.d/ssh Resart
In Windows, log in to the virtual machine using putty or SSH Secure shell
(Source: http://www.cnblogs.com/fengbeihong/p/3307575.html)
For example, when 192.168.14.138 links to 192.168.14.129,
SSH 192.168.14.139
But you want to enter the other person's password
This time need to be free of secrets:
Both machines are operated
SSH-KEYGEN-T RSA
Enter directly when encountering the need for output.
Then on each of the two machines:
scp.ssh/id_rsa.pub [Email Protected]:/home/hadoop/.ssh/authorized_keys
2. Ssh_-free connection on Linux installation