来源:http://wiki.jxqc.org/mediawiki/index.php?title=Psftp%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4
psftp是putty的组成部分,可以用于本地文件和远程文件的传输控制。
官网网站的介绍是:PSFTP (an SFTP client, i.e. general file transfer sessions much like FTP)
官网地址:http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
1. 建立远程连接
open hostname
open username@hostname
2. 操作远程服务器
pwd: 查看当前所在目录
cd +路径:进入某个目录
ls :列出当前目录下的文件
dir:列出当前目录下的文件
rm +文件名:删除文件
del+文件名:删除文件
put+本地文件:上传本地文件到远程服务器
get+远程文件:下载远程文件到本地机器
3. 操作本地文件
lpwd:查看本地机器当前所在目录
lcd+路径:更改本地机器的当前目录
!dir:列出本地机器当前目录的文件(感叹号!表示执行本地命令)
4. 关闭连接
close:关闭连接,不退出psftp
quit:关闭连接而且退出psftp
exit:关闭连接而且退出psftp