Super User is a question and answer site for computer enthusiasts and power users. 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 would like to create an SSH connection with a wireless router I got from BT. Any Idea how I can do this?. I want to use this SSH connection to connect to my home server.

I want to connect from outside my home to the wireless router that is connected to my home server with Linux based operating system.

Thanks in advance

share|improve this question

migrated from Mar 27 '12 at 4:49

This question came from our site for professional and enthusiast programmers.

This needs to be clarified. What system are you on? Do you want a connection specifically from the router to the home server? Or do you just want to connect from a computer from within the network inside your router? Or do you want to connect via SSH to the router for administration purposes? Perhaps an answer to "Why do you want to connect?" will suffice, so people who want to help can know what you are really asking. – Daniel Andersson Mar 27 '12 at 10:23
I got a MAC laptop, a router that I got from my Internet provider that is connected to my home server (runs Ubuntu) through a cable. – asghar ashgari May 25 '12 at 16:07

I think you mean that you want to connect to the home server from outside your home, correct? You don't really connect via SSH to the router for this; you just tell the router to pass the connection on to the home server. If this is the case, read on. If not, clarify the question even more.

You will have to tell the router to pass incoming traffic on the SSH port on to your internal server. This is usually called "port forwarding" or similar. See Google or perhaps for specific guides for your router on how to accomplish this. It is usually handled via some web interface that you see when you enter the routers internal IP address (usually or in a browser from within the home network.

Forward e.g. port 22 for the TCP protocol (the standard SSH port) from your router to your home server. After this is done, and you have an SSH server running on your server, you can just connect via SSH to your external IP (which is "owned" by the router), which will forward the connection to the server.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .