200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > ssh:connect to host localhost port 22: Connection refused解决方法

ssh:connect to host localhost port 22: Connection refused解决方法

时间:2022-04-28 00:27:29

相关推荐

ssh:connect to host localhost port 22: Connection refused解决方法

服务器传输数据时scp经常会报错:

linux系统(centos6.4)

ssh:connect to host localhost port 22: Connection refused

解决方法:

1.检查是否安装了openssh-server

ps -e|grep ssh

1

如果只出现了一个ssh,说明没有安装可以自行上网解决,一般centos是默认安装的,不会出现这种情况。

2.sshd未启动

service sshd restart

1

重启后

scp应该能正常的看到输入密码。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。