microchip_sac
Posts: 1
Joined: Fri Dec 13, 2013 3:45 pm

SSH to RPi

Fri Dec 13, 2013 4:37 pm

I have a model B Raspberry Pi, and I tried to set up an SSH server on it. When I try to login (via SSH) using the loopback interface on the RPi, it seems to work, and sshd is running. Then I connect my computer to the RPi via a LAN hub, but my SSH client gives me an error: 'no route to host'.
I can ping the RPi, so no problem with the connection, I guess. I have used SSH before, so there, too, I guess not much can go wrong. I also tried to configure the firewall using firewall-cmd (this is the part I'm unsure about).
Can anyone help me to set up remote login successfully? Thanks for your attention!

User avatar
lmarmisa
Posts: 1265
Joined: Thu Feb 14, 2013 2:22 am
Location: Jávea, Spain

Re: SSH to RPi

Fri Dec 13, 2013 5:27 pm

Your problem seems not related to RPi.

How are you trying to connect to your RPi?. Using the IP address?.

Code: Select all

ssh pi@192.168.1.xx
Use the command ifconfig if you want to know the IP address of your RPi.

Code: Select all

ifconfig

gmc
Posts: 123
Joined: Fri Mar 09, 2012 11:31 am
Location: Cheshire, UK
Contact: Website

Re: SSH to RPi

Fri Dec 13, 2013 7:19 pm

Is the default gateway on the pi set correctly? And you are SSH'ing to the IP address (not the loopback?)

Return to “Beginners”