Ask Different is a question and answer site for power users of Apple hardware and software. 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 am trying to use autossh, like so:

autossh -f -i id_rsa -D 8080

However, on both an PPC Tiger eMac and a Mountain Lion MacBook Pro, I just get presented with the argument and environment variable list.

Both machines have autossh 1.4c installed. I am focused on getting it working on the Tiger machine; I only tried it on my Mountain Lion MBP to see if the issue was Tiger-specific.

share|improve this question
With option -D ssh will act as a SOCKS server, is this your intent? If you try ssh -i id_rsa -D 8080, does it work as expected? If it does, if you drop option -f in autossh, does it work? If it doesn't, you will have to troubleshoot first why ssh fails. – jaume Mar 26 '13 at 15:10
up vote 5 down vote accepted

I ran into this before and the issue for me was autossh expects a specified monitoring port (even though this is optional according to the usage stdout).

autossh -M 12345 -f -i id_rsa -D 8080

This similar command works for me against autossh 1.4c installed via homebrew on mountain lion.

share|improve this answer

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.