I'm sorry but you, sir, are an absolute freaking legend! Idk how you knew those commands would work, but they did! SSH now running successfully on Raspbian. Hooray! Thanks as well to everyone else that helped, including drgeoff and Jim Jkla, your input is much appreciated!jojopi wrote:I doubt that you can regenerate the keys from a GUI. You also definitely need to be root to do so. (Even if ubuntu let you write to the foreign disk, the ssh daemon on the Pi would reject keys that have the wrong ownership.)
The commands I gave assumed the card would be mounted on /mnt. The designer of the GUI has decided not to tell you where the card is actually mounted, just calling it "1.9 GB Filesystem", which is both stupid and unhelpful
If you open a terminal you should be able to become root with something like "sudo su -". Look at "df -m" to work out where the 1762M partition has auto-mounted; probably somewhere under /mnt or /media. cd to the etc/ssh subdirectory of the card, maybe with something like "cd /media/10b4c001-2137-4418-b29e-57b7d15a6cbc/etc/ssh". These commands assume you are in the right directory:There should be no errors reported. Close the terminal window and eject the filesystem with the GUI button before unplugging the card.
Code: Select all
mv ssh_host_* ../../root yes |ssh-keygen -q -N "" -t rsa -f ssh_host_rsa_key yes |ssh-keygen -q -N "" -t dsa -f ssh_host_dsa_key yes |ssh-keygen -q -N "" -t ecdsa -f ssh_host_ecdsa_key 2>/dev/null sync
As a matter of learning, would you mind telling me what these commands actually did? I realise they reset my SSH keys, or did SOMETHING to my SSH keys, but I'm sure its more detailed than that.
Now I just need to get a working keyboard, try and get a working monitor and try to fix the SSH keys on Raspbmc (Which is proving a tad more difficult at the moment, though - there doesnt seem to be /etc/ssh directory). Also, installing Raspbmc is a little difficult with my router and TV in entirely different parts of the house