Mac或者linux下登陆到linux上的SFTP
登陆 sftp -i 密钥路径 用户@ip
➜ ~ sftp -i Desktop/aliyun.pem root@39.106.30.1
Connected to 39.106.30.1
上传文件 put 本地路径 远程路径
sftp> put .ssh/* /home
Uploading .ssh/id_rsa to /home/id_rsa
.ssh/id_rsa 100% 1675 57.6KB/s 00:00
Uploading .ssh/id_rsa.pub to /home/id_rsa.pub
.ssh/id_rsa.pub 100% 401 14.2KB/s 00:00
Uploading .ssh/known_hosts to /home/known_hosts
下载文件 get 远程路径 本地路径