OpenELEC Testbuilds for RaspberryPi
(2013-03-09, 18:04)doveman2 Wrote: Textmode does indeed show the problem, which is that it says the Permissions are 0644 which are too open for the ssh files in storage/.cache/ssh and therefore it won't use them and so there's no ssh access. I'm not sure how this can be fixed as obviously running Windows 7 I can't set Linux permissions on the files.

Just quoting myself as a reminder of where I got to previously. I recently transferred the boot from NFS to USB and still couldn't SSH in.

I've then accessed the USB stick in Virtualbox and deleted all the files in /storage/.cache./ssh so I figured it couldn't still be saying that the Permissions are 0644 and too open. I couldn't even open /storage/.ssh so I changed the permissions on that directory to 0755 and then saw it was empty.

I still had no access via SSH or SFTP. Pinging it got a response. The OpenElec settings show "Start SSH server at boot" is enabled. NFS and SMB from the Pi works fine.

Checking in Virtualbox again, I saw OE had recreated the files in .cache/ssh and with the following permissions

-rw-r--r-- 1 root root 672 2013-03-09 11:14 ssh_host_dsa_key
-rw-r--r-- 1 root root 590 2013-03-09 11:14 ssh_host_dsa_key.pub
-rw-r--r-- 1 root root 965 2013-03-09 11:13 ssh_host_key
-rw-r--r-- 1 root root 630 2013-03-09 11:13 ssh_host_key.pub
-rw-r--r-- 1 root root 1679 2013-03-09 11:13 ssh_host_rsa_key
-rw-r--r-- 1 root root 382 2013-03-09 11:13 ssh_host_rsa_key.pub

so I changed them with chmod 0700 * to tighten access to only the Owner and that worked and I can now SSH in. It seems strange that OE created the files with the wrong permissions though, after I deleted them and I'm a bit worried that if it needs to recreate them in future (say if any of them get corrupted) then it will do the same thing and break access again.

Some other good news is that Static IP is working for me now, as it was a pain using SSH with it changing. I set it it cmdline.txt, not using OpenElec settings though so that might still break the network connection as it did for me before.


Messages In This Thread
MythTV PVR: No Video - by hkramski - 2012-11-13, 20:32
Cumulative Small Skip forward ... - by xandy - 2013-02-03, 15:46
RE: OpenELEC Testbuilds for RaspberryPi - by doveman2 - 2013-03-23, 17:45
:00 - by Koloss - 2013-07-14, 12:09
RE: :00 - by popcornmix - 2013-07-14, 12:28
Logout Mark Read Team Forum Stats Members Help
OpenELEC Testbuilds for RaspberryPi12