Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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'm trying to make a tunneling application to use SSH over a HTTPS connection, with a custom client and server at each end, where the custom client opens a unix socket that can communicate with the SSH server on the other end. The problem is I'm not sure how to get ssh to open a connection over the unix socket rather than specifiying a host and port. Is this possible or are there any command line arguments that can be set to do so?

share|improve this question
up vote 0 down vote accepted

Look at the ProxyCommand ProxyCommand option in the docs for ssh. It allows you to use pretty much anything that can redirect to stdio.

share|improve this answer

In your ~/.ssh/config file you want to add an entry like so

Host theDestination 
  ProxyCommand ssh nc %h %p
  User me

This will automatically tunnel your connection through to theDestination. One thing to note is that you will need to make sure you have nc installed on the proxyBox.

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.