导航:[首页]->[bash]->[PuTTY妙用]

在Linux下,经常会用到sshscp等命令,但这个命令有一个不爽,密码不能通过参数传入,非得等一会儿手动输出。这在某些方面提高了安全性,但无此需求那么对自动化却是严重的阻碍,不过Putty有两个替代的免费工具可以实现这一点。

C:\>plink
PuTTY Link: command-line connection utility
Release 0.62
Usage: plink [options] [user@]host [command]
       ("host" can also be a PuTTY saved session name)
Options:
  -P port   connect to specified port
  -l user   connect with specified username
The following options only apply to SSH connections:
  -pw passw login with specified password

C:\>pscp
PuTTY Secure Copy client
Release 0.62
Usage: pscp [options] [user@]host:source target
       pscp [options] source [source...] [user@]host:target
       pscp [options] -ls [user@]host:filespec
Options:
  -P port   connect to specified port
  -l user   connect with specified username
  -pw passw login with specified password

此工具开源,你可以拿他到Linux下编译。