You are not logged in.

#1 2017-07-26 01:11:55

w88dy
Member
Registered: 2017-07-26
Posts: 9

SSH using DDNS on router

I'm attempting to access my workstation over SSH. Due to not having a static IP address I'm using no-ip and DDNS, which I've deployed on my Netgear home router. I've also setup port forwarding for port 22.

I've been reading the SSH and DDNS wiki, but I'm not finding much information on what to do now as the DDNS is setup on my router rather than my workstation. I've got Arch on my workstation and a laptop, both on the same network, but in the future I'd like to access the workstation remotely.

What packages should I have installed on both my laptop and workstation? What command would I use to access my workstation? If I follow instructions with my DDNS hostname that will only get me as far as my router?

Thanks

Offline

#2 2017-07-26 01:20:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SSH using DDNS on router

You have to have sshd running on the target machine (workstation), and forward port 22 to it's LAN address, using the router admin interface.

The SSH wiki article should cover off the rest.



Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-07-26 14:40:46

w88dy
Member
Registered: 2017-07-26
Posts: 9

Re: SSH using DDNS on router

Thanks for the advice. I'll do a bit more digging around in the SSH wiki.

Offline

#4 2017-07-26 14:54:15

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: SSH using DDNS on router

One catch might be that your router could be silently refusing to forward the ssh port. Mine complains when I try to forward only tcp port 22, it says it is reserved for the router itself, because the router can have an ssh server listening on the internet side.

As a test you can setup sshd to also listen on other ports and you could try forwarding those. It might also not be a bad idea to run ssh on a non-default port as that seems to reduce the number of bruteforce login attempts.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2017-07-27 01:02:32

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 714

Re: SSH using DDNS on router

R00KIE wrote:

As a test you can setup sshd to also listen on other ports and you could try forwarding those. It might also not be a bad idea to run ssh on a non-default port as that seems to reduce the number of bruteforce login attempts.

I always recommend people use port 443 on their router, and forward it to port 22 on their ssh server. Avoiding port 22 on the public interface stops all the brute force attempts from cluttering up your log. Using port 443 makes it more likely you can connect to your ssh server from within a corporate firewall because they nearly always block outbound connections on port 22, but allow 443 (https) of course.

Offline

Board footer

Powered by FluxBB