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