Plink -pw Password Authentication

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hello everyone.  I know this sounds strange, but I'm connecting to a SSH
server that doesn't have a password attached to a user account.  So when I
connect to the ssh server manually, I enter my username and just hit
<RETURN> for the password and I get logged in successfully.  Now I want to
automate a ssh tunnel using PLINK with the -pw option.  So how do I send a
<CR> for the password ?

I've tried everything I can think of and nothing seems to work.  Please
don't reply with "Oh you should be doing that, that's a bad security plan".
Beleive me, I know it is, but I don't have administrative access to these
SSH servers, however the firewall only passes traffic that's on the ACL.
So please skip comments concerning the obvious security violation.

The command is:

plink -N -L -pw <CR>  username@

Does anyone have any ideas?

Re: Plink -pw Password Authentication

Quoted text here. Click to load it

Use autossh from Cygwin instead?

Re: Plink -pw Password Authentication

Quoted text here. Click to load it

My immediate instinct would be to try -pw "". Does that not work?

(I unfortunately can't test it myself easily, because no SSH server
I know of bothers to _ask_ for the password if it's empty: they all
just let you straight in in that situation without sending a
password prompt at all. Yours sounds odd.)
Simon Tatham         "That all men should be brothers is a

Site Timeline