Can't SSH into XBMC on Raspberry Pi
#1
Exclamation 
Hi all,
I have searched for an answer on google and have tried every recommended process to solve the problem, but alas, no joy.
I'm going to try and post as much info as I can so I'm sorry if some of this is not relevant.

Setup:
I have 2 model B Raspberry Pi, both running Raspbmc Gotham XBMC.
- 1st connected via WiFi located on my living room - IP 192.168.0.10
- 2nd connected via cable in my bedroom - IP 192.168.0.13

These are both connected to my Linux fileserver running Ubuntu with media shared via Samba
- Ubuntu Linux version 14.04 IP 192.168.0.20
This is a headless server and I control it via Desktop Sharing on my Mac

These are connected via a Virgin Media SuperHub (Model 1) broadcasting WiFi at 2.4Ghz (frustrating my partners phone doesn't use 5Ghz).

I control XBMC on both devices using an app on my iPhone or via a web browser on my MacBoob Air.

I can FTP into either Pi using Filezilla but can't SSH into either.
I have checking in the XBMC settings and FTP and SSH are checked in both.

When I try to SSH into the Pi I get the following error:

Quote:Gareths-MacBook-Air:~ Gareth$ ssh -v 192.168.0.10
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to 192.168.0.10 [192.168.0.10] port 22.
debug1: connect to address 192.168.0.10 port 22: Connection refused
ssh: connect to host 192.168.0.10 port 22: Connection refused

If anyone can offer any help I would be immensely grateful.

Regards,

Gaz
Reply
#2
Probably need to supply a username to connect under. EG for OpenELEC ssh [email protected]
Dunno what the equivalent Raspbmc user is, but google should know.
Learning Linux the hard way !!
Reply
#3
Hi, thanks for the reply.

In the above example I had missed of the username however when you add this, it still doesn't work.
For Raspbmc the username is Pi

Quote:Gareths-MacBook-Air:~ Gareth$ ssh -v [email protected]
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to 192.168.0.10 [192.168.0.10] port 22.
debug1: connect to address 192.168.0.10 port 22: Connection refused
ssh: connect to host 192.168.0.10 port 22: Connection refused
Reply
#4
Hmmm, are you sure SSH is actually running on the Pi ? Just tried with -v option ssh'ing to my Openelec Pi and I get

Quote: ssh -v [email protected]
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.1.150 [192.168.1.150] port 22.
debug1: Connection established.
Learning Linux the hard way !!
Reply
#5
can you login on the pi directly(not over ssh)?
if yes, try: ssh localhost
to check it its even running and set up correctly.
Reply
#6
Hi

Yes I can log in directly by attaching a keyboard to the Pi
When I get into command line and type ssh localhost I get the following error:

Connect to host localhost port 22: connection refused
Reply
#7
SSH isn't running then.

Try sudo /etc/init.d/ssh start OR sudo service ssh start

and then see if you can ssh localhost

If those commands both fail, then ssh likely isn't installed in which case, sudo apt-get install openssh-server on your Pi should install it.
Learning Linux the hard way !!
Reply

Logout Mark Read Team Forum Stats Members Help
Can't SSH into XBMC on Raspberry Pi0