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 creating a layer 3 SSH tunnel with this command:

ssh  -w any:any root@xx.xx.xx.xx

I want to know the name of the interfaces that it creates. Typically it's tun0, but it varies.

I could force use a specific name, but that could cause a conflict with an existing name. There should be a way to retrieve that name.

share|improve this question

Try adding -v to your ssh invocation, then capturing the output and grepping for the tunnel device name. Unfortunately I'm not able to say any more than that, since I can't get that feature to work at all on my server.

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.