红联Linux门户
Linux帮助

RedHat Linux SSH问题

发布时间:2014-12-25 20:25:20来源:linux网站作者:hongweigg

1、RedHat Linux SSH重启

/etc/init.d/sshd restart


2、问题:ssh: permission denied (publickey)

若使用ssh访问其他机器出现该错误信息,则一般是公钥不对,可以把.ssh整个打包,传送到对方机器,然后解压缩就可以了。


3、问题:Permission denied (publickey,gssapi-with-mic)

能用SSH访问其他的机器不要密码,但访问自己的机器需要密码。好多人讲要修改/etc/ssh/sshd_config里的内容,或修改文件的权限,但似乎和这些没有关系,重启动sshd服务后,似乎问题就没有了:readhat linux 重启SSHD:

/etc/init.d/sshd restart。