I am trying to transfer a file between two network switches.
Below are the steps I tried:
Generated the public ssh-key on SwitchA using this command -
ssh-keygen -t rsa
Copied the newly generated key from SwitchA to SwitchB using this command -
scp /root/.ssh/id_rsa.pub email@example.com:/root/.ssh/id_rsa.pub
Tried transferring the file now, however its still asking for the credentials.
root@RE:0% scp test.sh firstname.lastname@example.org:/tmp/
Please suggest how I can achieve the file transfers passwordless.