Mac-配置SecureCRT
1. Tools - Create Public Key -2. Select Key Type
3. Create Passphrase
4.InputKey Length
5. Generate Passphrase
服务器端
1. Configureserver'sssh
$ vi /etc/ssh/sshd_config
Protocol 2
ServerKeyBits 1024
PermitRootLogin no #禁止root登录而已,与本文无关,加上安全些
#以下三行没什么要改的,把默认的#注释去掉就行了
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no //初次试验的时候最好用yes,否则配置错误的话重启sshd后你就悲剧了
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. 输入第五步记录的路径
页:
[1]