Use SecureCRT to set the ssh Public Key for linux logon to authenticate the linux system environment: CentOS release 5.5 www.2cto.com 1. modify the ssh configuration file/etc/ssh/sshd_configRSAAuthentication yes // use the RSA encryption algorithm PubkeyAuthentication yes // use the public key to authenticate AuthorizedKeysFile. ssh/authorized_keys // files stored with the allowed public key are stored in the user's main directory PasswordAuthentication no // password verification login is prohibited. If enabled, RSA Authentication login does not make sense 2. generate a public key/key pair. Use SecureCRT's "tool> Create public key". Select RSA as the encryption algorithm because the RSA algorithm is selected in the sshd configuration file to generate the Identity of the key file and the Identity of the public key file. pub. You will be prompted to enter a passage phrase to protect the key. Remember to use it for each connection in the future. It can also be empty. Www.2cto.com 3. upload the public key to change the Public Key Identity. pub uploads/home/user/to the ssh server system /. in ssh, I use the root account, so the path is/root /. ssh, if no. create an ssh directory by yourself. ssh folder 4. openssh does not support the key format generated by SecureCRT. type conversion is required: ssh-keygen-I-f Identity. pub> authorized_keyschmod 600 authorized_keys 5. restart sshd service sshd restart 6. restart SecureCRT to ensure that the "Public Key" item is checked in the "authentication" setting of the connection attribute. Enter the phrase as required after the connection. The public key and private key file are stored in the same directory on the local machine.