I am trying to login to my Ubuntu 12.10 desktop remotely. I have the SSH server installed and it works fine when I am on the same network as the Ubuntu desktop. However, I am unable to connect remotely from anywhere. This is my first time setting up my own SSH server.
Here is what I do,
- Set up port forwarding on your router, you really don't need to change the ssh port on the ubuntu box, just forward port X from the router to port 22 on the box.
- Set up dynamic dns on your router if possible. It will allow you to type "ssh firstname.lastname@example.org:port" Look here for basics on dynamic dns.
You will need to forward the port in your router.
go here http://www.canyouseeme.org/ port 22 is the default for ssh. Though I recommend changing it for security sake.
If this can "see" 22 then it is setup for internet connection. You may also need to set an iptables rule.