Remote SSH
I used to be able to use remote desktop and SSH to my home computer from work but once I changed my cable modem for the wireless router version I can't do that anymore. I lost all server abilites on my computer for anything. Games included. Is there anyway I can still do this or do I need to go back to the regular cable modem?
|
The router is probably performing NAT (network address translation) which blocks you from doing this. You'll need to use port forwarding or a DMZ to make this work.
|
I checked the router settings and told it to forward port 22 to 192.168.0.12 which is what my desktop shows up as. Am I on the right track?
|
most definitely
|
It didn't work after that. Is there another step?
|
remember to configure the ssh daemon to AllowRootLogin NO and perhaps add that only you can login( you can allow groups or users ). As an added blast of paranoia, I use non-standard ports( Normally a fixed number plus the last quadrant of an IP address as a port number ). If you have more than one network card, remember to only allow ssh on certain cards for security or else you leave the gate open. Good luck!
|
Umm, it should be working... are you trying to ssh to your external ip from within your lan?
|
You must configure the ssh daemon to listen-on 192.168.0.12. Hopefully you are using staic IP's behind the router as it gets more difficuly with dhcp.
|
static ip's can be configured from the router and also within the OS
|
AllowRootLogin no is a good security tip. :) Since only I use my machines, I assume that passwords and so forth are strong enough, so I feel good about that. But this is all discussion for another topic.
|
also when configuring ssh, remember to kill -9 `cat /var/run/sshd.pid` or wherever the process pid is located and the restart by usr/sbin/sshd
|
Quote:
|
Please forgive me..
Where do I got to setup SSH? |
by ssh'ing to your ISP provided ip address, the packets should be passed to your internal box. But as well the internal box must be configured to listen.
|
In OpenBSD it is /etc/ssh/sshd_config, I'm sure it something similar in fedora. Do a man sshd and it will probably tell you.
|
All times are GMT -5. The time now is 04:58 AM. |