psftp 便捷使用

#1. 下载 psftp 工具:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

 

#2. psftp 使用便捷方法:

将psftp.exe 的路径加入到环境变量中,这样在win+R/cmd line 中就可以直接使用psftp.

写bat 文件如下:

psftp ***.***.***.IP* -l name -pw password

关于psftp的选项参数说明可以直接在命令行中输入psftp -h查看:

C:\Users\*** >psftp -h
PuTTY Secure File Transfer (SFTP) client
Release 0.62
Usage: psftp [options] [user@]host
Options:
  -V        print version information and exit
  -pgpfp    print PGP key fingerprints and exit
  -b file   use specified batchfile
  -bc       output batchfile commands
  -be       don't stop batchfile processing if errors
  -v        show verbose messages
  -load sessname  Load settings from saved session
  -l user   connect with specified username
  -P port   connect to specified port
  -pw passw login with specified password
  -1 -2     force use of particular SSH protocol version
  -4 -6     force use of IPv4 or IPv6
  -C        enable compression
  -i key    private key file for authentication
  -noagent  disable use of Pageant
  -agent    enable use of Pageant
  -batch    disable all interactive prompts

因为psftp 无法自动补全文件名,可以使用-b 选项指定要下载的文件。

 

That's all !

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值