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

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
GuillaumeM91
Level 1
Level 1
Posts: 6
Joined: Thu Dec 28, 2017 4:31 pm

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

Post by GuillaumeM91 » Wed Feb 28, 2018 7:04 am

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 GuillaumeM91 on Thu Mar 01, 2018 6:04 am, edited 1 time in total.

deepakdeshp
Level 10
Level 10
Posts: 3364
Joined: Sun Aug 09, 2015 10:00 am

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

Post by deepakdeshp » Thu Mar 01, 2018 1:28 am

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, and keeps the forum clean.
I am using Mint 18.3 Cinnamon 64 bit with AMD processor . Memory 8GB

GuillaumeM91
Level 1
Level 1
Posts: 6
Joined: Thu Dec 28, 2017 4:31 pm

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

Post by GuillaumeM91 » Thu Mar 01, 2018 6:03 am

Thank you for your answer.

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

Post Reply

Return to “Other networking topics”