redhat es 5.5 安装无密码登陆的openssh(3)
Subsystem sftp /usr/libexec/openssh/sftp-server
3. putty 有三个软件,putty.exe(登陆用) puttygen.exe(生产密钥) pageant.exe(添加密钥工具)
先用puttygen.exe生产公钥私钥,把公钥复制到/home/zakk/.ssh/authorized_keys 私钥自己留着
4.建个用户为zakk
cd /home/zakk
midr .ssh
cd .ssh
touche authorized_keys
chown zakk.zakk authorized_keys
vi authorized_keys
PasswordAuthentication no
需要注意在配置的时候最好先修改为yes,配置好后在关闭,就修改此项需要重启sshd,其余配置均是实时生效,无需重启sshd。
RSAAuthentication no #默认值为 yes
PubkeyAuthentication yes
其实修改此3个参数就可以了。
顶(2)
踩(0)
- 最新评论