Linux ssh server configures rsa login authentication principle: the Key is equivalent to a key, and the Public Key is equivalent to a lock. Of course, we use the key to unlock the key. In the same way, we put the key on the local server, that is, client A puts the public key on the remote server, that is, the remote host B, so we can log on to the remote host B from client A ssh without A password. www.2cto.com 1. Generate the key [root@www.linuxidc.com. ssh] # ssh-keygen-t rsaGenerating public/private rsa key pair. enter file in which to save the key (/root /. ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in/root /. ssh/id_rsa.Your public key has been saved in/root /. ssh/id_rsa.pub.The key fingerprint is: e4: 9a: 47: a7: b4: 8a: 0b: 98: 07: b8: 70: de: 6b: 16: 2c: 0croot@www.linuxidc.com 2,/root /. ssh/id_rsa.pub is renamed as/root /. ssh/authorized_keys [A root@www.linuxidc.com. ssh] # mv/root /. ssh/id_rsa.pub/root /. ssh/authorized_keys 3. Copy the private key id_rsa to the remote client 1) if the remote client is linux, copy it to the remote client/root /. ssh/secrets --> Conversions --> Import Key (2), select the copied private key file id_rsa (3), Save private Key-> id_rsa.ppk (Save the private key) http://service.ap-southeast-1.maxcompute.aliyun-inc.com/api) the following message is displayed after the open command is successfully opened: login as: rootAuthenticating with public key "imported-openssh-key". Of course, you may encounter this error [because I encountered it, haha]: permissions 0755 for 'your public key file path 'are too open. this is because these file permission settings are a bit problematic. Execute the command: chmod 600. If your file ssh connection is slow, you can modify/etc/ssh/sshd_config, set GSSAPIAuthenticationno, and set UseDNS no, problem Solving