<SOLVED> - SSH connection impossible between two machine from different network.

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
GuillaumeM91

<SOLVED> - SSH connection impossible between two machine from different network.

Post by GuillaumeM91 »

Hi !

I have two computers, 1 laptop and 1 desktop, both are running on linux mint 18.3.
If I try to connect from my laptop to my desktop from home (same network) every thing is fine. However, if I try to connect from different networks the connection cannot be established.

I tried to connect using IP, IPv4 or IPv6 adress and I got the following results:

Code: Select all

$ ssh USER@IP
ssh: connect to host IP port 22: Connection refused

$ ssh USER@IPv4
ssh: connect to host IPv4 port 22: Connection timed out

$ ssh USER@IPv6
ssh: connect to host IPv6 port 22: Network is unreachable
The port 22 is supposed to be open I don't understand why the connection cannot be established.

Looking foward to read your answers,
Cheers !
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: SSH connection impossible between two machine from different network.

Post by deepakdeshp »

There may not be acces between the machines to each other.try

Code: Select all

ping ip2
from first machine. If it gives time out, it has to be fixed first.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
GuillaumeM91

Re: SSH connection impossible between two machine from different network.

Post by GuillaumeM91 »

Thank you for your answer.

It turned out to be the internet modem which required specific configuration.
Locked

Return to “Networking”