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 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 stackoverflow.com 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
add comment

1 Answer 1

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 http://www.portforward.com/ 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 192.168.0.1 or 192.168.1.1) 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
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.