以前在Windows上都是通过sftp,winscp之类的ssh客户端连接远程linux主机。
Mac下一只用的是iTerm2终端,查了一下,它也具备ssh客户端的功能。

  1. 通过iTerm2->Preferences->Profiles增加一个Profile

iTerm2连接远程主机

  1. iTerm2也支持和远程主机见传输文件

上传
scp local_file [email protected]:remote_file scp -r local_folder
[email protected]:remote_folder //-r表示递归

下载
scp [email protected]:remote_file local_file scp -r
[email protected]:remote_folder local_folder //-r表示递归

相关文章: