I have a server on my home network, and I'd like to be able to remotely access it via SSH. So I enabled port forwarding on my router administration panel, to forward all TCP/UDP requests to port 22 to my little server.
As I understand it, the way port forwarding works is that the router just forwards the TCP/UDP request to the appropriate device on the LAN according to the port forwarding table. So if I'm making an ssh
connection to my server, the underlying TCP request will be forwarded to it.
However, the basic ssh command to login to a remote destination is: ssh [user@]<hostname>
. The hostname is the IP address, so in this case it'd be my routers' global IP address. But how do I specify the username? As I understand, the router doesn't exactly have one.