1. Tools - Create Public Key -
2. Select Key Type
3. Create Passphrase
4.Input Key Length
5. Generate Passphrase
服务器端
1. Configure server's ssh
$ vi /etc/ssh/sshd_config
1 Protocol 22 ServerKeyBits 10243 PermitRootLogin no #禁止root登录而已,与本文无关,加上安全些4 #以下三行没什么要改的,把默认的#注释去掉就行了5 RSAAuthentication yes6 PubkeyAuthentication yes7 AuthorizedKeysFile .ssh/authorized_keys8 PasswordAuthentication no //初次试验的时候最好用yes,否则配置错误的话重启sshd后你就悲剧了9 PermitEmptyPasswords no
2. Convert SecureCRT's public key to OPENSSH key
$ rz #选择第五步生成的identity.pub$ ssh-keygen -i -f Identity.pub >> /root/.ssh/authorized_keys #生成服务端openssh的key$ /etc/init.d/sshd restart #重启服务
6. Choose public key
7. 输入第五步记录的路径