在windows上,用xshell+xftp就可以很方便的操作远程linux服务器了。

而这2个软件是没有mac版的,所以在macOS下,是怎样实现对远程linux服务器的操作的呢?

 

使用ssh连接远程主机

ssh username@192.168.100.100

使用scp命令实现上传下载


1、下载服务器 test.txt 到本地桌面

scp root@192.168.100.100:/root/test.txt /Users/mac/Desktop

2、上传本地桌面上的 test.txt 到服务器 root 目录下

scp /Users/mac/Desktop/test.txt root@123.207.170.40:/root/

3、下载服务器 root 文件夹

scp -r root@192.168.0.101:/root/ /Users/mac/Desktop/

4、上传当前本地目录下的 test 文件夹到服务器 root 目录下

scp -r test root@192.168.0.101:/root/ 

注:目标服务器要开启写入权限。

 

--------------------- 
作者:xuchg1 
来源:CSDN 
原文:https://blog.csdn.net/xcg132566/article/details/78797339 (内容有删改)
版权声明:本文为博主原创文章,转载请附上博文链接!

 

GitHub 加速计划 / li / linux-dash
13
2
下载
A beautiful web dashboard for Linux
最近提交(Master分支:3 个月前 )
186a802e added ecosystem file for PM2 5 年前
5def40a3 Add host customization support for the NodeJS version 5 年前
Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐