Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I'm using Raspbmc on my Raspberry Pi as my torrent/media server. I want to backup ~/.xbmc and ~/.config/deluge by tarring them and rsync'ing them over to my Ubuntu laptop.

This all goes fine, but I have to enter the password each time, which I find cumbersome.

Because of that, I've generated a SSH key on my Raspberry Pi, and copied the contents of /home/pi/.ssh/id_rsa.pub to /home/ubuntu/.ssh/authorized_keys.

This works, but when I want to SSH from the Pi to my Ubuntu laptop right now, I get the message:

Enter passphrase for key '/home/pi/.ssh/id_rsa': 

which is even worse. How can I make the Raspberry Pi remember this passphrase?

share|improve this question
add comment

2 Answers

I've found a way to get this done. Log in to Raspbmc via SSH, then type the following:

openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new
cp ~/.ssh/id_rsa ~/.ssh/id_rsa.backup
rm ~/.ssh/id_rsa
cp ~/.ssh/id_rsa_new ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa

After this, you should be able to log in to Ubuntu from the Raspberry Pi, without getting asked for a passphrase. Note that this will remove the encryption safety.

(Source)

share|improve this answer
add comment

I don't know how Raspbmc was built, but if it was built on Debian you could follow this guide: http://elinux.org/RPi_Debian_Auto_Login

Or maybe try Xbian!

share|improve this answer
    
That will probably not work. The guide is made for logging in locally, and starting X11, which is a whole other thing. –  Exeleration-G Dec 22 '12 at 15:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.