Configure SecureCRT to log on to the server using the SSH public key.
To facilitate server management, one function of CRT is very convenient. That is, you can use the private key to authenticate and connect directly, and the password protection is more secure.
First configure ssh
Port 32812
Protocol 2
UseDNS no
PubkeyAuthentication yes
AuthorizedKeysFile. ssh/authorized_keys
PasswordAuthentication no
MaxAuthTries 60
The operation is divided into two parts:
1. linux server operations:
First, generate the public key and private key.
Ssh-keygen-t dsa-f/root /. ssh/'ifconfig eth0 | awk'/inet addr/{print $2} '| awk-F': ''{print $ NF }''. id_dsa-N'-q
###
-T specifies the encryption algorithm
-F specifies the generation path
-Q quiet mode
A public key is generated under/root/. ssh /.
Then grant the permission. id_dsa is the private key and id_dsa.pub is the public key.
The. ssh directory must have 700 permissions.
Download the two files and save them to a directory that stores the Authentication Files. Note: Put both files here.
Rename the public key content to authorized_keys. You can also cat id_dsa.pub> authorized_keys.
2. CRT connection logon.