naryanashankara
Posts: 1
Joined: Thu Mar 09, 2017 5:56 pm

headless ssh raspberian on pi3

Sun May 21, 2017 3:53 am

I've got raspberian jessy up and running. I've gone into raspi-config and engaged ssh (rebooted and the ssh is persistent). I've placed an empty folder titled ssh on both sd cards.
I ran ifconfig and eth0 inet:192.168.1.3 was returned (among other things). I logging into my other pi3 and entered the command ssh 192.168.1.3 and I get "ssh:connect to host 192.168.1.3 port 22: Network is unreachable".
Both pis are connected to a router and the router is not plugged into the internet. Since both pis are plugged into the router and I'm trying to get them to talk to each other, it shouldn't matter that I'm not connected to the internet, right?

Any suggestions would be greatly appreciated.

Tdi-Me
Posts: 38
Joined: Fri May 05, 2017 8:11 pm

Re: headless ssh raspberian on pi3

Sun May 21, 2017 9:13 pm

With this router is it a typical home router or are we talking something more advanced? I ask because home routers are more like router / switches and more advanced / commercial grade routers treat each interface differently.
Also if its a home router make sure they are connected just to the numbered ports not the wan / internet port.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: headless ssh raspberian on pi3

Mon May 22, 2017 2:59 am

naryanashankara wrote:I've gone into raspi-config anrd engaged ssh (rebooted and the ssh is persistent). I've placed an empty folder titled ssh on both sd cards.
Both pis are connected to a router and the router is not plugged into the internet. Since both pis are plugged into the router and I'm trying to get them to talk to each.
the empty folder "ssh" is wrong but should not matter.
the idea is to make a empty file "ssh"
in the boot dir to enable ssh OR
use raspi_config.

just first try to do a
ping between the 2 pi's.

Return to “Beginners”