You are not logged in.

#1 2016-08-24 15:45:59

ewl
Member
Registered: 2006-10-31
Posts: 24

ssh connection problem

I'm running archlinux on my laptop and debian on a netbook in my bedroom which is connected to an external hard drive which I use for backups. Every morning when I try to ssh the netbook, I have connection problems. After fooling around with it for a while, it goes through and then I have no problems until I shut the laptop off and start up again. The most consistent way of getting through is to ping the netbook until the ping goes through, which might take a couple dozen pings. It's not a big deal but I'm wondering if this is a normal problem and what I might try to fix it.

Offline

#2 2016-08-24 16:26:44

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: ssh connection problem

ewl wrote:

After fooling around with it for a while, it goes through

"Fooling around" tells us nothing. Please be very specific when asking questions. Posting the command-line output of the ping command may be useful. It will show if the host is not found, unreachable, or if the packets are just timing out.

Describing your exact network setup would also be informative. I'm guessing that the network runs through a wifi router. What model?

Is the netbook idling? You could always try setting up a script to ping the router from the netbook every 5 seconds to see if the service remains available, but that's obviously a kludge.

You could also fire up Wireshark and monitor the traffic to see what's going where or nowhere at all.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2016-08-25 02:57:07

ewl
Member
Registered: 2006-10-31
Posts: 24

Re: ssh connection problem

When I try to ssh in, I get the following:
ssh: connect to host 192.168.2.8 port 22: No route to host

Here's a result of pinging the netbook:
$ ping 192.168.2.8
PING 192.168.2.8 (192.168.2.8) 56(84) bytes of data.
From 192.168.2.5 icmp_seq=1 Destination Host Unreachable
From 192.168.2.5 icmp_seq=2 Destination Host Unreachable
From 192.168.2.5 icmp_seq=3 Destination Host Unreachable
From 192.168.2.5 icmp_seq=4 Destination Host Unreachable
From 192.168.2.5 icmp_seq=5 Destination Host Unreachable
From 192.168.2.5 icmp_seq=6 Destination Host Unreachable
From 192.168.2.5 icmp_seq=7 Destination Host Unreachable
From 192.168.2.5 icmp_seq=8 Destination Host Unreachable
From 192.168.2.5 icmp_seq=9 Destination Host Unreachable
From 192.168.2.5 icmp_seq=10 Destination Host Unreachable
From 192.168.2.5 icmp_seq=12 Destination Host Unreachable
From 192.168.2.5 icmp_seq=13 Destination Host Unreachable
From 192.168.2.5 icmp_seq=14 Destination Host Unreachable
From 192.168.2.5 icmp_seq=15 Destination Host Unreachable
From 192.168.2.5 icmp_seq=16 Destination Host Unreachable
From 192.168.2.5 icmp_seq=17 Destination Host Unreachable
From 192.168.2.5 icmp_seq=18 Destination Host Unreachable
From 192.168.2.5 icmp_seq=19 Destination Host Unreachable
From 192.168.2.5 icmp_seq=20 Destination Host Unreachable
From 192.168.2.5 icmp_seq=21 Destination Host Unreachable
From 192.168.2.5 icmp_seq=22 Destination Host Unreachable
From 192.168.2.5 icmp_seq=23 Destination Host Unreachable
From 192.168.2.5 icmp_seq=24 Destination Host Unreachable
64 bytes from 192.168.2.8: icmp_seq=25 ttl=64 time=73.2 ms
64 bytes from 192.168.2.8: icmp_seq=26 ttl=64 time=1.97 ms
64 bytes from 192.168.2.8: icmp_seq=27 ttl=64 time=1.78 ms
64 bytes from 192.168.2.8: icmp_seq=28 ttl=64 time=1.89 ms
64 bytes from 192.168.2.8: icmp_seq=29 ttl=64 time=1.87 ms
64 bytes from 192.168.2.8: icmp_seq=30 ttl=64 time=1.88 ms
64 bytes from 192.168.2.8: icmp_seq=31 ttl=64 time=2.00 ms

Offline

#4 2016-08-27 17:11:00

OlafLostViking
Member
From: Lost
Registered: 2013-01-30
Posts: 58

Re: ssh connection problem

Do you have a routing devices in between your computers? Perhaps you've got an ARP problem.

Offline

Board footer

Powered by FluxBB