复制文件基本格式:(本地到远程)

scp 文件名 用户名@ip:文件全目录

如果是文件夹加上参数 -r

scp -r 基础目录 用户名@ip:目录

 

栗子:

scp local_file remote_username@remote_ip:remote_file

 

如果是远程到本地则对调参数:

栗子:

scp remote_username@remote_ip:remote_file local_file 

 

如果需要制定端口复制:参数 -p

栗子:

scp -p 8888 remote_username@remote_ip:remote_file local_file 

相关文章:

  • 2022-01-29
  • 2022-01-04
  • 2022-02-19
  • 2022-12-23
  • 2022-02-05
  • 2021-09-13
  • 2022-12-23
  • 2021-06-27
猜你喜欢
  • 2022-12-23
  • 2022-02-12
  • 2021-05-18
  • 2022-01-10
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案