@ xyz-worx
Yes mate, I was about to do it anyway, sorry. So here we go then ....
A fresh copy of piCore
fdisk -ul
mount /dev/mmcblk0p2
(mmcblk0p2 is my ext4 formatted partition)
tce-setdrive
( select mmcblk0p2 )
Set password for tc
passwd
Install openssh
tce-load -wi openssh.tcz
Run the following commnads:
sudo cp /usr/local/etc/ssh/sshd_config.example /usr/local/etc/ssh/sshd_config
sudo cp /usr/local/etc/ssh/ssh_config.example /usr/local/etc/ssh/ssh_config
Start openssh
sudo /usr/local/etc/init.d/openssh start
( the application will now generate some keys, give it a couple of seconds )
That should be it. Now you can ssh to your Raspberry Pi from your computer ( login: tc and password: the one you've set )
Once logged in let's make this persistent ( so that openssh won't generate new keys on every boot )
I'm using MobaXterm so it's quite easy to edit files using the internal editor. No need for installing nano on the Raspberry Pi.
Open
/opt/.filetool.lst
Add
etc/passwd
etc/shadow
usr/local/etc/ssh/ssh_config
usr/local/etc/ssh/sshd_config
usr/local/etc/ssh/ssh_host_dsa_key
usr/local/etc/ssh/ssh_host_dsa_key.pub
usr/local/etc/ssh/ssh_host_ecdsa_key
usr/local/etc/ssh/ssh_host_ecdsa_key.pub
usr/local/etc/ssh/ssh_host_rsa_key
usr/local/etc/ssh/ssh_host_rsa_key.pub
Save and exit.
Let's make openssh start on boot
Open
/opt/bootlocal.sh
Add
/usr/local/etc/init.d/openssh start
Save and exit.
The most important step, we have to backup the lot.
Run the following command:
filetool.sh -b
Reboot.