SSH服务附带----SFTP

sftp -oPort=22 daxian@192.168.70.126

Connecting to 192.168.70.126...
daxian@192.168.70.126's password: 
sftp> pwd
Remote working directory: /home/daxian
sftp>put /etc/hosts   #上传数据

Uploading /etc/hosts to /home/daxian/hosts
/etc/hosts

 

  sftp> put /etc/hosts /tmp/ #指定目录上传

 

sftp> ls  #也可以执行linux上的命令
ls
hosts

 

sftp> get /etc/hosts   #下载文件

 

sftp> get /etc/hosts   /tmp  #下载文件到指定目录

 

 

上传数据

put上传

到192.168.70.126 /home/daxian/下 就能看见上传的东西

 

不支持目录

 

posted @ 2017-12-29 10:33  大仙儿没溜儿  阅读(251)  评论(0编辑  收藏  举报