This is a recipe on how to connect to a robot remotely using ssh.

Yes, this is another task. Once it's done we can remove the 'task' tag.

Copying the Public Key using SSH Tools#

On your Linux device (e.g., a desktop computer or a Raspberry Pi), run the following command. Make sure that you replace IP_ADDRESS with the IP address of the remote machine that you want to copy the keys to.

Please note that you will be asked to log in with both your username and password for that remote machine as the tool needs these to copy over your public key.

ssh-copy-id -i ~/.ssh/id_rsa IP_ADDRESS

If the username of the host is not the same as the client you should use "USERNAME@IP_ADDRESS". For example, if you are connecting from your home account on a desktop computer to a Raspberry Pi at, you'd use:

ssh-copy-id -i ~/.ssh/id_rsa pi@

Once done, this tool will automatically add your public key to the authorized_keys file on the remote machine.

Tags:  Recipe, Task