Topic "How to disconnect upon public key authentication failure?"

Author Message
coldboy
[View user's profile]

Joined: 17 Jan 2012
Posts: 1
Location: Singapore
Hi,

I need to connect to a server which is configured to prompt for password when public key authentication fails. However, I am not issued the password. At times, when the server is busy, it throws public key authentication failure even though the ppk provided is correct. Then it prompted me for password. As I am using scripts for connecting, the script will just hang there and wait for password input.

Is there anyway that I can force this connection to close?

Please advise.
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19542
Location: Prague, Czech republic
If you enable batch mode (option batch ...) before opening connection, the password prompt is cancelled in 10 seconds.
_________________
Martin Prikryl
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