Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.