您当前的位置: 首页 >  ssh
  • 0浏览

    0关注

    1477博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

scp ssh: connect to host 192.168.6.129 port 22: Connection refused lost connection

软件工程小施同学 发布时间:2020-10-14 20:20:09 ,浏览量:0

一、对方主机未安装ssh-server

1. 查看是否有sshd进程

ps -e | grep ssh

2. 安装openssh-server

sudo apt-get install openssh-server

3. 如果安装了,但是没有sshd进程,可以重启

/etc/init.d/ssh restart

 

二、如果之后,再提示Permission denied, please try again

1. 对方机器的root是否设置了密码

https://blog.csdn.net/u013288190/article/details/109014136

 

2. 对方ssh是否设置了允许root登录

vim /etc/ssh/sshd_config

将PermitRootLogin no / without-password 改为 PermitRootLogin yes,然后重启sshd服务。

 

最终就成功了

 

 

 

 

参考:

https://blog.csdn.net/qq_20867981/article/details/80203836

https://www.cnblogs.com/xuliangxing/p/7428737.html

关注
打赏
1665320866
查看更多评论
立即登录/注册

微信扫码登录

0.4432s