scp port 22: Connection refused

原因:ubuntu默认并没有安装ssh服务

解决:sudo apt-get install openssh-server


查看:ssh server是否启动,看到  (sshd)进程就表明ssh服务已开启

ps -e | grep ssh
  849 ?        00:00:00 sshd
 1711 ?        00:00:00 ssh-agent

你可能感兴趣的:(Linux,开发工具)