Automatic Logon to remote server

Advertisement

KanuVesta
Guest

Automatic Logon to remote server

Hi,

I am trying to script an automatic logon to a remote SFTP session with WINSCP. However, the remote server will not publish keys. I therefore need to logon automatically, via script, with a password instead of a key. I must ensure I am not prompted for a password on logon.Is this possible?

Thanks
Kanu

Reply with quote

Advertisement

KanuVesta
Guest

Re: Automatic Logon to remote server

Thanks Martin,

I also found a way via a VBS command
objShell.SendKeys "password"
WScript.Sleep 500
objShell.SendKeys "{ENTER}"

As my VBS script calls the WINSCP session.

Thanks again :D

Reply with quote

Advertisement

You can post new topics in this forum