Ian Mac
Joined:
Posts:
3

I have a script that works perfectly the batch file is
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\concur\log\WinSCP.log" /ini=nul /script="c:\concur\sftp_concur.txt"
Call the txt file that is
open sftp://<username>:passwd@IPAddress/ -hostkey="ssh-rsa 2048 blahblah"
this has worked perfectly on Windows 2008 but i have to upgrade to Windows 2019 and just doesn't work no error just no results!!
To complicate matters i also need to use Public and Private keys i have generated these and can connect to the site using the app but i can not get this to work on script!

It seems to work but i get no log file update nor do i get any connection with no error

Ian Mac
Joined:
Posts:
3
Hi all couple of additional 1. I have now for the base script to work in Windows 2019 but as soon as i add
open sftp://<Username>@Ipaddress/ -hostkey="ssh-rsa 2048 blahblah=" -private key="path filename.ppk" -passphrase="xxxxxxxx"
the file stops working....

martin
Joined:
Posts:
36,025
Location:
Prague, Czechia

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Ian Mac
Joined:
Posts:
3