Topic "Automatic Logon to remote server"

Author Message
KanuVesta

Guest


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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
You can specify the password in an open command:
https://winscp.net/eng/docs/scriptcommand_open
_________________
Martin Prikryl
KanuVesta

Guest


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 Very Happy
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License