Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: How to disconnect upon public key authentication failure?

If you enable batch mode (option batch ...) before opening connection, the password prompt is cancelled in 10 seconds.
coldboy

How to disconnect upon public key authentication failure?

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.