ssh config for vps
maybe you can try this first
ssh-keygen # generate a key pair
ssh-copy-id user@host # copy plubic key to vps
ssh -i ~/.ssh/private-key-file user@host # try it now
put this to your ~/.ssh/config file
# Begin vps config
Host vps
HostName www.baidu.com
Port 22
User your-name
IdentityFile ~/.ssh/private-key-file
ServerAliveInterval 60
# End vps config

浙公网安备 33010602011771号