LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-21-2016, 03:26 AM   #1
iFunction
Member
 
Registered: Nov 2015
Posts: 248

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


Hi,

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:
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inte static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
the other Pi has ip of 192.168.1.110 but the rest the same.

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

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

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
Member
 
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
iFunction
Member
 
Registered: Nov 2015
Posts: 248

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 169.254.1.0 - 169.254.254.255 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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:37 PM.

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