找回密码
 注册
查看: 1206|回复: 1

ssh的问题

[复制链接]
发表于 2009-4-23 11:07:11 | 显示全部楼层 |阅读模式
我有两台linux(记为station1,station2),想用S1通过ssh访问S2,而且不需要输入密码,设置过程是这样的:
1.在S1上使用用户root登陆,运行ssh-keygen   -t   rsa
2.在S1上/home/root/.ssh    cp id_rsa.pub authorized_keys
3.copy authorized_keys 到S2机器上  /home/root/.ssh 目录下
4.在S2上 chmod 644 authorized_keys

但是现在从S1  ssh到S2仍然需要输入密码.我的设置有什么错误吗?
发表于 2009-4-23 13:52:28 | 显示全部楼层
印象里要设置ssh改为证书认证
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-7-14 02:06 , Processed in 0.022478 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表