[Linux]ssh相关问题

ssh链接不上的最可能原因是防火墙没关,一般提示“connection refused”。

可以使用这个命令查看:#service iptables status

暂时关闭iptables,重启后还会开:#service iptables stop

永久关闭iptables:#chkconfig iptables off

 

设置开机运行sshd:#chkconfig --level 5 sshd on

 

连接的时候提示错误:

WARNING! The remote SSH server rejected an X11 forwarding request. To enable X11 forwarding, you should modify the server's configuration file and restart it.

解决方法:打开X11Forwarding

#vi /etc/ssh/sshd_config
#X11Forwarding no 改成 X11Forwarding yes 保存退出

 

posted on 2013-12-21 18:54  南京大乱炖  阅读(570)  评论(0编辑  收藏  举报

导航