SSHSecureShellClinet密钥认证登录
2010-11-02 15:08
381 查看
SSH远程登录安全设定:
1、生成密钥
使用SSH Secure Shell Client --> Edit --> Settings -->
Global Settings--> User Authenication --> Keys-->
Generate New..
选择密钥类型 (DSA)密钥长度 (3072)
命名文件:auth_key
密钥使用密码:*******
使用SSH Secure Shell Client -->Quick Connect-->Authentication[Password]登录
Edit --> Settings -->
Global Settings--> User Authenication--> Keys
选中生成的钥匙--> Upload 上传。
使用SSH Secure Shell Client -->Quick Connect-->Authentication[Password]登录
#cd .ssh
#ssh-keygen –i –f 151auth_key.pub >> authorized_keys (转换成open ssh识别的密钥格式)
#rm –rf 151auth_key.pub
#rm –rf authorization
#chmod 600 authorized_keys
#cd ..
#chmod 700 .ssh
编辑 /etc/ssh/sshd_config
修改:PasswordAuthentication no
#/etc/init.d/sshd restart
使用SSH Secure Shell Client -->Quick Connect-->Authentication[public key]登录
4、去掉密码认证方式,使用public key认证方式
3、转换密钥格式,生成AuthorizedKeysFile: .ssh/authorized_keys
2、上传密钥本文出自 “xxfvert” 博客,请务必保留此出处http://xxfvert.blog.51cto.com/794431/414038
1、生成密钥
使用SSH Secure Shell Client --> Edit --> Settings -->
Global Settings--> User Authenication --> Keys-->
Generate New..
选择密钥类型 (DSA)密钥长度 (3072)
命名文件:auth_key
密钥使用密码:*******
使用SSH Secure Shell Client -->Quick Connect-->Authentication[Password]登录
Edit --> Settings -->
Global Settings--> User Authenication--> Keys
选中生成的钥匙--> Upload 上传。
使用SSH Secure Shell Client -->Quick Connect-->Authentication[Password]登录
#cd .ssh
#ssh-keygen –i –f 151auth_key.pub >> authorized_keys (转换成open ssh识别的密钥格式)
#rm –rf 151auth_key.pub
#rm –rf authorization
#chmod 600 authorized_keys
#cd ..
#chmod 700 .ssh
编辑 /etc/ssh/sshd_config
修改:PasswordAuthentication no
#/etc/init.d/sshd restart
使用SSH Secure Shell Client -->Quick Connect-->Authentication[public key]登录
4、去掉密码认证方式,使用public key认证方式
3、转换密钥格式,生成AuthorizedKeysFile: .ssh/authorized_keys
2、上传密钥本文出自 “xxfvert” 博客,请务必保留此出处http://xxfvert.blog.51cto.com/794431/414038
相关文章推荐
- SSH Secure Shell Client用密钥认证登录linux服务器
- SSH Secure Shell Client用pub key认证登录linux
- 安装、设置和使用SSH Secure shell 实现windows 登录linux
- sshSSH Secure Shell Client root用户无法登录解决办法
- SSH_Secure_Shell_ClientH工具密钥登录linux
- SSH_Secure_Shell_ClientH工具密钥登录linux
- sshSSH Secure Shell Client root用户无法登录解决办法
- 安装、设置和使用SSH Secure shell 实现windows 登录linux
- SSH Secure Shell Client用public key认证登录
- SSH Secure Shell登录报错: Ubuntu SSH Algorithm negotiation failed
- SSH Secure Shell Client远程登录Linux
- SSH Secure Shell Client用public key认证登录 推荐
- Windows使用SSH Secure Shell实现免密码登录Linux的方法以及使用scp2命令免密码下载文件
- SSH Secure Shell Client登录时提示:connection refused的解决办法
- SSH Secure Shell登录RedHat 中文乱码问题
- SSH Secure Shell登录报错: Ubuntu SSH Algorithm negotiation failed
- SSH Secure Shell Client用public key认证登录
- SSH Secure Shell Client用public key认证登录
- SecureCRT、SSH Secure Shell Client远程登录实现
- SSH Secure Shell Client中文乱码的解决办法