1、在windows中pscp文件到ubuntu中,报错connection refused。原因可能ubuntu中没有安装ssh-server或没有启动。
2、ubuntu中用命令ps -e | grep ssh查看,
显示19709 ? 00:00:00 sshd表示已启动
3、如果没有通过sudo apt-get install openssh-server命令安装。
4、安装启动以后测试:ssh -l [username][address of the remoote host]
5、sudo gedit /etc/hostname可查看和修改主机名。
本文介绍了解决从Windows使用pscp命令向Ubuntu传输文件时遇到connection refused错误的方法。首先检查Ubuntu是否已安装并启动了ssh-server服务,如果没有,则通过sudo apt-get install openssh-server命令进行安装。安装完成后可通过ssh命令进行测试。

417

被折叠的 条评论
为什么被折叠?



