There are three ways to quickly log in:
1. Automatic SSH/SCP mode I'm using this one, and I think it's great.
2.shell script this one's good.
3. Establishing a SSH/SCP channel this is a bit wasteful.
The above are Baidu's, the following write their own:
Let's describe it first:
1. Generating the public key private key
2. Upload the public key to the server
4. Add the public key to the Authorized_keys file
5. Configure the local config file
6.ssh xx Landing
It's OK.
I put a part of the code
# Client-side operation sudo ssh-keygen-t RSA # Generate public key private key, all the way to the right (if you want to get more than one name, I write an example below)
# The system prompts enter the address you want to place when you enter file in which to save the key, ~/equivalent to/users/yuzhen/
#enter file in which to save the key:/users/yuzhen/.ssh/id_rsa_204.120
~/. Shh # can see two files RSA and ~/.ssh/id_rsa.pub [email protected]:~/.ssh/~/>> ~/. Sshtouch configvim confighost ~/.ssh/id_rsa_204.120 # your private key address
# Configure multiple words and copy them again.
Host #别名, domain abbreviation I'm writing IP end hostname #ip domain user # username identityfile ~/.ssh/id_rsa_204.120 # Your private key address
Let's go back to the update, and get some fun.
[Ssh]mac Quick Login