8000cabbage

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

  

分类:

技术点:

相关文章:

  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-11-12
  • 2021-08-06
  • 2022-02-12
猜你喜欢
  • 2021-12-07
  • 2021-12-14
  • 2021-09-27
  • 2022-01-07
  • 2021-09-21
  • 2022-02-12
  • 2022-12-23
相关资源
相似解决方案