1、SecureCRT设置
==========================================
Quick Connect-> Authentiation -> Public Key -> Properties ->Create Identity File ->DSA/RSA -> Set Passphrase -> Done
==========================================
完成时会在指定目录生成两个文件,默认名称为:私钥Identity和公钥Identity.pub。
2、SSH服务器设置如果不存在/root/.ssh目录,则自行建立。
==========================================
# mkdir /root/.ssh# chmod 700 /root/.ssh
==========================================
将公钥Identity.pub传到Linux服务器,将SSH2兼容格式的公钥转换成为Openssh兼容格式。
==========================================
# ssh-keygen -i -f Identity.pub >> /root/.ssh/authorized_keys# chmod 600 /root/.ssh/authorized_keys
==========================================
3、使用SecureCRT登录服务器首先设置登录模式为PublicKey,并选择刚刚创建的公钥文件Identity.pub。
4、重启Linux服务器的ssh服务
==========================================
# service sshd restart
==========================================