Linux 互传文件或文件夹
SCP命令
usage: scp [-346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[]host1:]file1 ... [[]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
相关推荐
airfish000 2020-09-11
风语者 2020-09-02
lichuanlong00 2020-08-15
projava 2020-11-14
WanKaShing 2020-11-12
tryfind 2020-09-14
yegen00 2020-09-10
kkaazz 2020-09-03
BraveWangDev 2020-08-19
gsl 2020-08-15
pandaphinex 2020-08-09
yhuihon 2020-08-09
CheNorton 2020-08-02
xiangqiao 2020-07-28
hpujsj 2020-07-26
hpujsj 2020-07-26
sshong 2020-07-19
BraveWangDev 2020-07-19
annan 2020-07-18