Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to log in to my home computer that is behind nat addressing and has no fully qualified domain.
Using my external address I get a 'not found' error with something like this:
Code:
ssh -l me :external-address:
Perhaps leave out the ":" ?
Ports and keys are set in config and user files.
If I run dig against the 'external-address' it reports the correct pc as forwarded by the router.
if I leave out the colons, it does connect (I think) and asks for key password and then hangs.
The public rsa key for the local machine is on the remote server in autherized_keys. Nothing in the ufw logs to indicate any blocking.
The problem is that you are attempting to login to the router, not the PC.
To have that work, you have to configure the router to forward the ssh port to your PC. That takes the router out of the connection path - anything that connects to that port is automatically forwarded to the PC to handle.
Now a connection to your public address will be forwarded to the PC and you can login as you expect.
NOTE: This means that you PC has to treat that port as if it were directly connected to the internet...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.