Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-21-2016, 03:26 AM   #1
Registered: Nov 2015
Posts: 224

Rep: Reputation: Disabled
Can't ssh from one raspberry pi to another


I'm sure this is very simple but I can't figure it out.

I have two raspberry pi's connected directly with ethernet cable, network interface files static IP as follows:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inte static
the other Pi has ip of but the rest the same.

Pi@raspberry ~ $ sudo ssh pi@
ssh: connect to host No route to host
What am I doing wrong this time?
Old 01-21-2016, 04:00 AM   #2
Registered: Nov 2015
Posts: 224

Original Poster
Rep: Reputation: Disabled
just did ifconfig on both, one is fine, the other is getting the ip address of

Where is it getting this ip address from, it is just connected to the other raspberry pi with static ip addresses ???
Old 01-21-2016, 05:44 PM   #3
Doug G
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
Double-check your static IP setup on the failing pi. I think the 169.154. address is automatically created when your connection is configured to use dhcp but a dhcp server can't be located.
1 members found this post helpful.
Old 01-22-2016, 05:29 AM   #4
Registered: Nov 2015
Posts: 224

Original Poster
Rep: Reputation: Disabled
Hi Doug,

Thanks for your input, after a little research, you are spot on, a computer will be assigned an IP address in the range - range to avoid any conflict with any other IP addresses on the network. This range is reserved specifically for this purpose by Microsoft.

It crops up if the OS thinks that it is getting IP address automatically but isn't actually getting one. In the case of this raspberry pi, though I can't check now as I had to clone a new sd_card, it was supposed to be exactly the same as the other Pi I have configured, I had DHCP enabled as well as having a static IP address assigned and I suspect that I had them both set to auto, thus confusing the operating system.

Good to know.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH problem over wifi with raspberry pi iFunction Linux - Newbie 3 01-12-2016 09:15 AM
LXer: SSH into your Christmas tree with Raspberry Pi LXer Syndicated Linux News 0 12-11-2015 12:43 PM
ssh fail on headless server. Raspberry Pi debian funnyman7 Linux - Networking 6 09-16-2015 12:59 AM
Problem ssh'ing into Cross LFS on Raspberry Pi Keith Hedger Linux From Scratch 5 01-05-2013 05:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration