Mac-配置SecureCRT

 

1. Tools - Create Public Key - 安全

2. Select Key Typebash

3. Create Passphrase服务器

4.Input  Key Lengthssh

5. Generate Passphraseide

 

 

 

 

 

 

服务器端spa

1. Configure  server's  ssh3d

$ vi /etc/ssh/sshd_configrest

1 Protocol 2
2 ServerKeyBits 1024
3 PermitRootLogin no #禁止root登陆而已,与本文无关,加上安全些
4 #如下三行没什么要改的,把默认的#注释去掉就好了
5 RSAAuthentication yes
6 PubkeyAuthentication yes
7 AuthorizedKeysFile .ssh/authorized_keys
8 PasswordAuthentication no //初次试验的时候最好用yes,不然配置错误的话重启sshd后你就悲剧了
9 PermitEmptyPasswords no

2. Convert SecureCRT's public key to OPENSSH keycode

$ rz #选择第五步生成的identity.pub
$ ssh-keygen -i -f Identity.pub >> /root/.ssh/authorized_keys   #生成服务端openssh的key
$ /etc/init.d/sshd restart    #重启服务

 

6. Choose public keyserver

 

 

7. 输入第五步记录的路径

相关文章
相关标签/搜索