You are not logged in.

#1 2019-04-11 03:16:48

Nyxlucifer
Member
Registered: 2019-04-03
Posts: 19

Some issues with ssh

So I tried connecting to my computer using ssh and termux emulator on android phone and it worked very well like one would expect. But today morning, when I had a friend to connect to it and do some stuffs around, he seem to not to be able to connect it and get connection timeouts, while I got connection refused errors. I thought that maybe it has something to do with switching to different wifi so I restarted my laptop, and I started to get timeout errors just same as my friend. I verified that sshd service is running and listening to port 22 0.0.0.0. I confirmed my ip addresses too and it seems fine too, but I can't connect.

Offline

#2 2019-04-11 03:20:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,530
Website

Re: Some issues with ssh

Nyxlucifer wrote:

I thought that maybe it has something to do with switching to different wifi...

Then elaborate on this.  What network were you on when it worked, and what were you on when it didn't.

There's very little to go on here, but I'd bet the router on the current network is not allowing traffic on port 22.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2019-04-11 03:22:31

Nyxlucifer
Member
Registered: 2019-04-03
Posts: 19

Re: Some issues with ssh

To be specific, they were mobile hotspots. At first it was hotspot from my phone connected to laptop and later on it was my dad's phone

Offline

#4 2019-04-11 03:26:29

Nyxlucifer
Member
Registered: 2019-04-03
Posts: 19

Re: Some issues with ssh

I think it has something to do with android thingy, I will try some things here

Last edited by Nyxlucifer (2019-04-11 03:26:57)

Offline

#5 2019-04-11 03:33:56

Nyxlucifer
Member
Registered: 2019-04-03
Posts: 19

Re: Some issues with ssh

Okay so apparently there is another issue now, I got back to earlier wifi and I see "no route to host error"

Offline

#6 2019-04-11 03:41:00

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Some issues with ssh

Learn to use the edit button and stop bumping your thread.

ssh has excellent debugging: please use it and post actual errors: https://bbs.archlinux.org/viewtopic.php?id=57855


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2019-04-11 05:33:20

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Some issues with ssh

since you don't seem to know any information about your networks, you should give this a try to see if you even have port 22 open

Offline

#8 2019-04-11 05:50:46

Nyxlucifer
Member
Registered: 2019-04-03
Posts: 19

Re: Some issues with ssh

It says that port is not open, but I thought that arch don't have them closed?

Offline

#9 2019-04-11 07:08:25

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Some issues with ssh

your computer may not have those ports closed, but you also need to configure your network to have them open or forwarded.

Offline

#10 2019-04-11 08:14:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,517

Re: Some issues with ssh

Consumer router defaults will only allow access within the same subnet, but not external connections - and since you're apparently not very experienced, please DO NOT OPEN SSH TO THE INTERNET!

First establish the network layout, in particular "ip l" and "ip r" on server and client, then try "nmap -p 22 localhost" on the server and "nmap -p 22 [server ip here]" on the client.
Report the outputs.

Idk how to reliably figure the local IP of AndroidBasedVendorOS™ but try to figure that as well if your only concern is the phone.

Offline

Board footer

Powered by FluxBB