Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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
up vote 1 down vote accepted

I would suggest using keys for an automated logon:

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


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.