PDA

View Full Version : sshd and port forwarding


arcele
2005-06-28, 05:25 AM CDT
Hello.

I have sshd running and from the machine I am able to type

$> ssh localhost

and everything goes as planned, however if i try to do

$> ssh my.ipa.ddr.ess

it gives me connection refused. I'd like to be able to ssh into my linux box from work and I've set up my router to forward port 22 to the linux box, but to no avail. Are there other ports that sshd requires to work? Or is it more likely that my isp has blocked access to port 22?

fsck
2005-06-28, 05:30 AM CDT
Any of the things you mention are possible, and a lot more.
It's possible that the Fedora machine is blocking external connections to port 22, check the firewall settings in 'system-config-securitylevel'
It's also possible that your network "at work" will not allow ssh traffic out.

arcele
2005-06-28, 05:38 AM CDT
I'll have to check the firewall settings when I get home, But I do know that my work doesn't block ssh connections as I make dozens each day as a software developer. As I think back, the fact that Comcast blocks port 22 seems more and more likely as I beleive I remember they had blocked port 1080 a few months back. I guess if the firewall isn't showing that port 22 is blocked, I'll just try to listen on a different port. Thanks for the input.

arcele
2005-06-28, 04:42 PM CDT
Ok, so I've checked out my firewall settings and everything seems to be in order, I beleive that the issue lies that my isp is blocking access to port 22....no biggy, I'll run sshd on another port.....how might I go about doing that?? :)

bytesniper
2005-06-28, 04:46 PM CDT
you can change the port ssh listens on in /etc/ssh/sshd_config
look for a line that says Port 22 and change the 22 to whatever port you want
save and restart sshd: service ssh restart

fsck
2005-06-28, 04:46 PM CDT
An option like:Port 80 in /etc/ssh/sshd_config, you can also do it with ListenAddress.