SCP命令
usage: scp [-346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[[email protected]]host1:]file1 ... [[[email protected]]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
原文地址:https://www.cnblogs.com/8000cabbage/p/12334287.html
时间: 2024-10-07 08:03:06