[ubuntu] ssh: connect to host xxxx port 22: Connection refused

调用scp命令拷贝另一台机器上的文件时,报错:

thomas@J-35:~/dev_ws$ scp -r [email protected]:/home/thomas/dev_ws/pics/ /home/thomas/dev_ws/
ssh: connect to host 192.168.1.104 port 22: Connection refused

执行以下命令安装ssh即可

sudo apt-get  install openssh-server

你可能感兴趣的:(linux,服务器,运维)