我已从以下位置下载 PSCP:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
并将其添加到 Windows 7 中的 PATH 中。我现在尝试使用以下命令将文件复制到 tomcat:
pscp -P 8081 bob.txt mm@ http://repository:/var/lib/tomcat5.5/webapps/bob.txt
根据以下信息:
http://e-articles.info/e/a/title/Transfer-files-from-the-command-line-with-PSCP/
但我只是得到错误:
ssh_init:主机不存在
如果我使用 putty 以用户“mm”身份登录到服务器,我可以 cd 到 var/lib/tomcat5.5/webapps/ 目录就好了。关于为什么没有找到主机的任何想法?