0

Want to send audio from one RPI to another over my network using sox. therefore need to run ssh without password. How to do this on a simple way?

marked as duplicate by Ingo, Milliways, Dmitry Grigoryev, Ghanima Oct 22 '18 at 19:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Research private / public keys. This facilitates secure, passwordless login. – Dirk Oct 21 '18 at 20:57
0

You can achieve that by using ssh-keys.

Run ssh-keygen -t rsa -b 4096 on your client (your first RPI) and follow the instructions. Leave the passphrase empty.

Then copy the public key to your second RPI by running: ssh-copy-id -i ~/.ssh/id_rsa.pub pi@secondRPI

Now you should be able to login without any password.

  • Thanks for the reply. The first part is OK (client RPIi I'm getting a public key.) Now for the second part, "ssh-copy-id -i ~/.ssh/id_rsa.pub pi@secondRPI" - with scond RPI you mean the IP adress of the second RPI? Sorry, i'm Newbie. In fact I copied the .ssh directory from the first RPI into my second RPI but i guess this is not the way to do. – JSTAL Oct 22 '18 at 20:06
  • Yes, take the IP address of your second RPI! Copying your .ssh folder is not a good idea, and won't work. So would suggest to remove the .ssh folder on your second py rm -r .ssh. And then run ssh-copy-id -i ~/.ssh/id_rsa.pub pi@IP-address-of-your-second-pi on your first by. – jake Oct 22 '18 at 23:51

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