pscp文件到ubuntu时不成功,connection refused

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可查看和修改主机名。

猜你喜欢

转载自woailuohui5520-163-com.iteye.com/blog/2101186
今日推荐