Score:0

Ubuntu server ssh - works on one network, not another

ss flag

I'm very new to server management. I've set up a ubuntu 22.04 server on an old laptop. Up 'till now, I've been able to successfully ssh into it using my new laptop. Thinking that was that, I packed up my new laptop, left the old laptop at home with ethernet plugged in, and went off to visit a friend.

Now I'm on my friend's wifi, and I'm trying to ssh back into my old laptop, but I'm getting an error when attempting to do that:

ssh: connect to host xxx.xxx.xx.xx port 22: Connection timed out

Am I missing something? My assumption was that ssh would allow my new laptop to log in to my old laptop from anywhere. Is the fact that I'm attempting this from a different network than the host machine to blame? How can I remotely diagnose and fix this issue?

Emre Talha avatar
ar flag
If the laptop is behind a router, you have to forward the port from the router to the laptop. Port forwarding is done in the router's setup, that is *usually* only accessible within the home network.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.