Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Plink -pw Password Authentication
August 6, 2009, 8:40 pm
rate this thread
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 127.0.0.1:10005:127.0.0.1:1973 -pw <CR> firstname.lastname@example.org
Does anyone have any ideas?
Re: Plink -pw Password Authentication
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
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum