Adam-Ye

1、使用ssh命令连接Linux服务器主机

不设置端口,默认就是22

ssh root@服务器ip

2、使用scp命令实现文件上传下载

示例

1、将本地文件/user/a/txt,上传到服务器/usr/opt/目录

Scp /user/a/txt root@服务器ip:/usr/opt/

若是目录应该是

Scp -r  /user/a/txt root@服务器ip:/usr/opt/ 

2、将服务器文件/usr/opt/a.txt,下载到本地

Scp root@服务器ip:/usr/opt/a.txt /本机目录

若是目录应该是

Scp -r  root@服务器ip:/usr/opt/a.txt /本机目录

 

分类:

技术点:

相关文章:

  • 2021-12-05
  • 2021-12-05
  • 2021-12-31
猜你喜欢
  • 2021-05-16
  • 2021-12-09
  • 2022-01-01
  • 2021-05-11
  • 2021-12-29
  • 2021-12-19
  • 2022-01-01
相关资源
相似解决方案