Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need to setup a proxy on my localbox to redirect some requests to another network. I am doing it in the following way

ssh -f -N -D 0.0.0.0:22022 some-external-host

In this case every time i try run this command in script it is always asks for a password, is it possible to pass a password to this command programatically and not to type it every time i run this script? Public keys is not an option for me.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I would suggest using keys for an automated logon:

https://help.ubuntu.com/community/SSH/OpenSSH/Keys

share|improve this answer
    
yes, but keys are not an option for me, cause it requires work from admins from external server that is not possible for the moment. –  user253202 Apr 26 '12 at 19:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.