-1

In looking at other posts, "Batch file for PuTTY/PSFTP file transfer automation", regarding automating the PSFTP command in a .bat file so that I can setup a Windows Scheduled Task, I tried the following but got the error below:

In the .bat file that I'm executing I have the following lines:

@echo off
cd "c:\PuTTY"
psftp 999.99.999.999 -l XXXXXIO -i testGSX.ppk -b DownloadDiscoverReports.txt 

In the DownloadDiscoverReports.txt file I have the following lines:

lcd c:\Reports\GSXDLFILES\ALLRPTS
cd /DSCVROUT/ALLRPTS/
mget *ALLRPTS%POLLABLE*
lcd c:\Reports\GSXDLFILES\XMIT81
cd /DSCVROUT/XMIT81/
mget *XMIT81%POLLABLE*

The error I'm getting when I execute the .bat file from my C:\ is:

C:\>gsx_dl.bat
psftp: no hostname specified; use "open host.name" to connect
New local directory is c:\Reports\GSXDLFILES\ALLRPTS
psftp: not connected to a host; use "open host.name"

C:\PuTTY>

Any suggestions/direction on how to fix this issue would be appreciated. Thank you.

4

1 回答 1

-1

此问题已得到解决。PuTTY 支持响应了我的问题,我在命令中输入了 -v 开关,发现我的 KEY 已过期,这就是问题所在。

不管怎么说,还是要谢谢你。

于 2013-08-20T16:06:53.993 回答