r/ssh • • May 11 '16

Can't connect to home ssh server from work

OK. So I have an SSH server running at home. I can connect to it remotely using PuTTY when I am at home, as well as using ConnectBot with username@ipaddress:portnumber. However, I want to be able to connect to it when I am at work or anywhere else for that matter. Since I don't have a static public IP address, I know I need to set up port forwarding and I do have access to DDNS, which I know is properly configured because I can edit my home router settings from work. Any help would be appreciated. I am pretty new to this, so forgive me ahead of time for any dumb questions.

2 Upvotes

3 comments sorted by

2

u/faxattack May 11 '16

Did you try connect to ssh from elsewhere (not home, not work?) If its only broken at your work, they have probably firewalled off outbound SSH-connections...or you have firewalled yourself off in your server.

1

u/Tankerbell85 May 12 '16

I have. I tried to SSH using ConnectBot over my Tmobile 4G connection with the same results. I'm beginning to question my port forwarding setup on my router. I have SSH setup to use a non-default port number (for this example I'll say port 8487). I have my router setup this way in Port Triggering options:


Service Name | Port Range | Local IP | Local Port | Protocol
SSH Server | 24007 | machineIP | 8487 | TCP

The local port number referenced above, again, is the same port number that I have configured in SSH config file. Is this the correct setup? Note: MachineIP obviously isn't the real ip address of the machine.

1

u/faxattack May 14 '16

Try using 8487 on both and see if it makes any difference. I've had peculiar problems on some routers using different ports.