Fedora启用SSH

来源:互联网 发布:cnki查重软件 编辑:程序博客网 时间:2024/05/21 23:34

使用putty通过SSH远程登录linux,提示Network error:Connection refused 错误的解决办法:

1.vi /etc/ssh/sshd_config 将PermitRootLogin的注释取消,或者将no改为yes。

2.service sshd restart

3.setup命令进入将防火墙关闭。


备注:

1.查看sshd服务是否运行

[hongyanta@localhost ~]$ ps -ef |grep sshd
root      2323     1  0 14:31 ?        00:00:00 /usr/sbin/sshd -D
root      2330  2323  0 14:35 ?        00:00:00 sshd: hongyanta [priv]
hongyan+  2334  2330  0 14:35 ?        00:00:00 sshd: hongyanta@notty
root      2430  2323  0 14:36 ?        00:00:00 sshd: hongyanta [priv]
hongyan+  2434  2430  0 14:36 ?        00:00:00 sshd: hongyanta@pts/1
hongyan+  2528  2437  0 14:38 pts/1    00:00:00 grep --color=auto sshd



0 0