LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how can I have people telnet/ssh to my box when im behind a router? (https://www.linuxquestions.org/questions/linux-networking-3/how-can-i-have-people-telnet-ssh-to-my-box-when-im-behind-a-router-117911/)

digsby0007 11-19-2003 03:12 PM

how can I have people telnet/ssh to my box when im behind a router?
 
Ok im running RH 8, and I have a linksys router that connects to machines to the net. I want to be able to have someone telnet to my Ip and it be sent to my machine. Now im somewhat of a newbie, and have no clue how to do this so any advice, direction would be great.


Thanks,
Digsby

Mara 11-19-2003 03:36 PM

I understand you have a dynamic IP (are you using dhcp?). In most cases the solution is to redirecto ports to your machine. But you need to check in the router's manual if it can be done. The other method is to build a tunnel, but in such case you need to have access to a machine with a global IP (connected directly to the Internet).

esteeven 11-19-2003 04:25 PM

If you have a dynamic ip, it is difficult to ssh into your box - considering that the ip today might not be the ip tomorrow. I had the same problem - I was able to ssh into my home box from work box until the ip addresses were changed. My advice is this - either
(a) buy a dynamic ip from your isp
(b) register a domain and register with www.zoneedit.com . Point your domain at the zoneedit nameservers (it's all explained in the documentation on zoneedit) and - hey presto - you will be able to telnet/ssh to your domain (e.g. ssh mydomain.com). You'll need software to update zoneedit about your dynamic address changes - info on zoneedit. Note - be careful where you register your domain. Be sure that they allow you to use your own (ie zoneedit's) nameservers.

Good luck

richard3403 11-19-2003 05:28 PM

I don't know the answer but I would not allow any telnet access. Only ssh. Telnet is insecure. Make sure your ssh is updated with latest patches. You can use ssh to be enabled with public key encryption and/or passwords, but with the right passwords it will be quite secure.

lenlutz 11-19-2003 05:42 PM

IF youre using the linksys (or, i guess any other)
there is a tab, for "forwarding", or "port forwarding"
(in the linksys, its "advanced"..... "forwarding"

if your machine is 192.168.1.1
then put that in the address, and 23 in the port

when your router sees port 23, it will send it "forward it", to your machine
(or port 22 for ssh)


All times are GMT -5. The time now is 02:53 AM.