1.用ssh登录远程ubuntu主机

(主机ip为:1.2.3.4;用户名:username)

ssh username@1.2.3.4

 

2.从远程ubuntu主机copy文件/文件夹到本地(scp)

(远程文件夹位置:/home/username/test.txt;本地保存目录为: .(当前目录))

scp -r username@1.2.3.4:/home/username/text.txt .

 

3.从本地向远程ubuntu主机copy文件/文件夹(scp)

scp -r localfile.txt username@1.2.3.4:/home/username/

相关文章:

  • 2021-12-12
  • 2021-04-03
  • 2021-11-28
  • 2021-07-06
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2022-02-27
  • 2021-11-27
  • 2021-07-21
  • 2022-12-23
相关资源
相似解决方案