Chinaunix
标题:
putty使用ssh2登录*nix 下openssh的注意事项
[打印本页]
作者:
u0u0
时间:
2009-01-07 11:28
标题:
putty使用ssh2登录*nix 下openssh的注意事项
1.sshd配置
Protocol 2 #协议版本号2
PermitRootLogin no #root不能直接登录,可以su
StrictModes yes #严格公匙检查文件权限
PubkeyAuthentication yes #公匙密匙配对认证方式
AuthorizedKeysFile .ssh/authorized_keys #公匙文件路径
IgnoreRhosts yes #忽略rhost登录方式
PasswordAuthentication no #禁用密码登录方式
ChallengeResponseAuthentication no #关闭问答认证
UsePAM no #PAM认证
Subsystem sftp /usr/libexec/sftp-server #默认配置。用途不知
2.生产公匙密匙对
ssh-keyfen -t dsa
mv id_dsa.pub authorized_keys
chmod 600 authorized_keys
3.用puttygen把id_dsa转换成putty认识的ppk格式
本文来自ChinaUnix博客,如果查看原文请点:
http://blog.chinaunix.net/u/4774/showart_1779252.html
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2