SCP命令
usage: scp [-346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2
从服务器A传文件到服务器B
scp {本地文件路径} {服务器用户名}@{服务器ip}:{保存服务器路径}
报错
1:连接拒绝
ssh: connect to host 192.168.136.134 port 22: Connection refused lost connection
服务器B没有启用ssh
安装 ssh服务端
sudo apt install openssh-server
查看状态
sudo service ssh status