You are not logged in.
Hi,
I'm kinda a Linux noob but I managed to set up openshh on my computer.
I'm sure I got it working by doing:
#ssh root@127.0.0.1
and my LAN ip
#ssh root@192.168.0.165
I added a virtual server entry into my router settings for port 22 set to my LAN ip. It should mean that I when I shh into my router's ip I should be ssh'ing into my computer right?
But when I tried
#shh root@192.168.0.1 (my router's ip)
It didnt work! It said:
ssh: connect to host 192.168.0.1 port 22: Connection refused
If I added the virtual server to my router shouldn't it theoretically work?
Note that the reason I want this to work is so that I can connect to my computer from any internet connected PC through my router's WAN address.
Dont know if this will help but I have a DLink DI-824VUP+ router
Thanks in advance!
Last edited by zowki (2008-11-28 16:39:24)
How's my programming? Call 1-800-DEV-NULL
Offline
This "Virtual-Server" Sounds like Port-Forwaring. But AFAIK the router then only forwards requests from outside the network (on the external interface). Requests from the inside aren't forwarded at all. You could try to get your external IP address (whatsmyip.org or similar). It's probably already working and your host is already dead. Btw.: If you have found out about your IP you could post it here so I can check for you if it works (Just kidding, DONT DO IT!!! Read below)
Note
You should be aware of the security risk you're taking! By forwarding a port you are breaking a huge hole into your firewall! It's even more risky on the default port! Choose a not-standart-port and forward it the. Also, you should disable root-ssh access and passwords! (=> http://wiki.archlinux.org/index.php/Using_SSH_Keys).
Offline
So for now: TURN IT OFF!
Offline
I followed your advice and connecting with my WAN ip and it worked great! Thank you so much for your help. I was only using the root user as an example since I didnt want to reveal myself, i really disabled root acount for ssh. I also followed your advice for changing to a non standard port. Thanks again for your help!
How's my programming? Call 1-800-DEV-NULL
Offline