Page 1 of 1

problematic ssh over wifi

Posted: Thu Nov 22, 2012 8:40 pm
by lightening_fingers
I'm attempting to get ssh working over wifi to my pi from my iMac terminal.
latest weedy linux with a edimax 7811, nice strong asus (nexus 7) power supply

over lan everything is sweet. I can ping, ssh in and run remote X session.

however once I've used the desktop wifi config tool and rebooted, I get internet connection on the pi but no ssh.
I've found that I have to ping the imac from the pi first, then I can ssh in from the iMac.
I have to do the same everytime I reboot the pi, wifi connects, internet is fine, but no ssh until I ping the iMac from the pi.

any ideas anyone?

thanks in advance

lightening_f

Re: problematic ssh over wifi

Posted: Fri Nov 23, 2012 12:01 pm
by lightening_fingers
ok so may have found my problem.

BT homehub3 aaarrrrgggghhhh!


looks like it may be associated with having connected my pi to the hub via ethernet AND wifi is causing the router problems. (name associated with 2 mac addresses?)
i.e. it works on another wifi network stably with no problems. I can SSH into the pi with no need to ping anything.

maybe I need to delete the pi from the homehub lookup table and re-register it again but just connecting to wifi.

S

Re: problematic ssh over wifi

Posted: Fri Nov 23, 2012 12:08 pm
by drgeoff
lightening_fingers wrote:looks like it may be associated with having connected my pi to the hub via ethernet AND wifi
Not a good idea with any router. Was it intentional, and if so, why?

Re: problematic ssh over wifi

Posted: Fri Nov 23, 2012 2:20 pm
by davecochran
sounds like an issue with the ARP table. same ip for both interfaces?

Where you connecting using a hostname or ip address (static or dynamic)? How is each assigned? There is no reason why you cannot use multiple paths to the same router simultanesously. With a few variations each path is assigned a metric lowest number has highest priority if available..if not next path should be followed.

Re: problematic ssh over wifi

Posted: Sun Nov 25, 2012 2:07 am
by relva
you're using a mac?
did you already deleted the /.ssh/known_hosts entries?

Re: problematic ssh over wifi

Posted: Sun Dec 02, 2012 6:49 pm
by lightening_fingers
sorry just to clarify, never had the pi connected both ethernet and wifi concurrently.
What I ment was.... its previously been connected via ethernet, no SSH problems, then over wifi constant drop-outs or connection problems.

yes I've cleared out the known_hosts.

and yes it was an ARP table problem.
The BT home hub version 3(c) is riddled with problems by the sounds of it (a quick google reveals lots).
Having cleared the IP tables for the router for both the wired and wireless still no joy.
Tried static addresses as well, still no joy.
The link is stable as long as the pi constantly pings the mac, as soon as you loose the ping after a few minutes it drop the SSH but the pi still has networking (internet still works).

using an old netgear router, I've set up a dedicated pi net which I'm using for my robotics projects. (running the pi headless over ssh)
No problems at all so it MUST be the homehub.

LF