A normal connection method: ssh [email protected]
Second, no password connection method (there are two machines: here I called the server is connected, the other is called the client):
1, first add the directory server .ssh: mkdir .ssh
2, assign permissions .ssh directory: chmod 777 .ssh
3, create a public and private key on the client: ssh-keygen // here simply press the Enter key more, until you create a successful
4, copy the public key to the client to the server, run the command: ssh-copy-id [email protected], you can achieve ssh access without a password until you enter the correct password.