You are not logged in.

#26 2018-12-26 05:34:48

spandan.anupam
Member
Registered: 2018-12-25
Posts: 16

Re: [SOLVED] Problem in SSHing arch from a different machine

/dev/zero wrote:

A simple way to test whether an ssh service is actually listening on a remote machine is to use telnet. If you run "telnet 192.168.1.33 22" you should see something like this:

$ telnet 192.168.1.33 22
Trying 192.168.1.33...
Connected to 192.168.1.33.
Escape character is '^]'.
SSH-2.0-OpenSSH_7.9

Notice how the sshd service displays a banner showing its version. (Press '^]' followed by Ctrl-D to terminate the telnet session after checking the banner.)

The benefit of doing this is if you can't even get a telnet banner then you know it is either a network issue or a firewall issue.

Whereas, if telnet shows you the banner for your ssh server, then you know that the network and firewall are okay, and it will be better to focus on the ssh client and sshd service configurations.

spandan@spandan ~ $ telnet 192.168.1.33 22
Trying 192.168.1.33...

It doesn't go any further than this.

Offline

#27 2018-12-26 06:21:52

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [SOLVED] Problem in SSHing arch from a different machine

You have a general network connectivity issue. If I were to guess, it would be that your router is somehow filtering traffic between your wired and wireless. This can happen if the wireless network is configured as a 'guest' network (at least for ASUS routers). Check your router's settings for similar, this is unlikely to be an Arch issue.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#28 2018-12-26 07:20:54

spandan.anupam
Member
Registered: 2018-12-25
Posts: 16

Re: [SOLVED] Problem in SSHing arch from a different machine

ngoonee wrote:

You have a general network connectivity issue. If I were to guess, it would be that your router is somehow filtering traffic between your wired and wireless. This can happen if the wireless network is configured as a 'guest' network (at least for ASUS routers). Check your router's settings for similar, this is unlikely to be an Arch issue.

Okay then, now it has been boiled down to my router so I should close this thread.

Offline

#29 2018-12-26 08:49:32

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

Re: [SOLVED] Problem in SSHing arch from a different machine

Can the macbook actually ping other devices in the 192.168.1.0/24 subnet?
I don't really know what to make out of the OSX route outputs, but this somehow smells like a VPN w/ special handling of the LAN and that somehow fails?

Offline

#30 2018-12-27 05:33:05

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: [SOLVED] Problem in SSHing arch from a different machine

Run the below command on your arch machine, then try and connect from your mac via SSH:

tcpdump -lnnienp2s0 port 22

Post the output for us here.

(Yes, you'll probably have to install tcpdump from the repos)

Last edited by fukawi2 (2018-12-27 05:33:29)

Offline

#31 2018-12-28 12:36:03

spandan.anupam
Member
Registered: 2018-12-25
Posts: 16

Re: [SOLVED] Problem in SSHing arch from a different machine

seth wrote:

Can the macbook actually ping other devices in the 192.168.1.0/24 subnet?
I don't really know what to make out of the OSX route outputs, but this somehow smells like a VPN w/ special handling of the LAN and that somehow fails?

Sorry, I cannot really know anything about that, as I have only these two devices with me. I will try though, but it is very unlikely, and sorry for replying late.

Last edited by spandan.anupam (2018-12-28 12:39:59)

Offline

#32 2018-12-28 12:39:27

spandan.anupam
Member
Registered: 2018-12-25
Posts: 16

Re: [SOLVED] Problem in SSHing arch from a different machine

fukawi2 wrote:

Run the below command on your arch machine, then try and connect from your mac via SSH:

tcpdump -lnnienp2s0 port 22

Post the output for us here.

(Yes, you'll probably have to install tcpdump from the repos)

Sorry for replying late, but my arch machine doesn't do anything from that code. I used -vv too here.

tcpdump: listening on enp2s0, link-type EN10MB (Ethernet), capture size 262144 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel

Offline

#33 2018-12-28 15:40:16

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

Re: [SOLVED] Problem in SSHing arch from a different machine

tcpdump sniffs the network traffic, so it makes only sense to run this in parallel to attempted ssh connects. The ping failures however make it unlikely that you're getting packages incoming on port 22.
If you've a smartphone or tablet, they'll usually respond to pings as well.

Offline

#34 2018-12-29 04:32:45

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: [SOLVED] Problem in SSHing arch from a different machine

spandan.anupam wrote:
tcpdump: listening on enp2s0, link-type EN10MB (Ethernet), capture size 262144 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel

OK, so that shows that the packets are not even reaching your Arch machine (tcpdump will show packets even if they're blocked by the local firewall).  There's something funky going on in your network and/or the Mac that is preventing your connection.

Offline

Board footer

Powered by FluxBB