Jean-luc KRIKER
Oct 14, 2018
...
/project # sftp root@192.168.99.11 root@192.168.99.11's password: Connected to 192.168.99.11. sftp> put /root/.ssh/id_rsa.pub /root/.ssh/id_rsa.pub Uploading /root/.ssh/id_rsa.pub to /root/.ssh/id_rsa.pub /root/.ssh/id_rsa.pub 100% 386 502.9KB/s 0.4KB/s 00:00 sftp> ls .ssh/ id_rsa.pub sftp> pwd Remote working directory: /root sftp> exit /project #
Check: after the ssh-copy-id, on the remote server: before/after ( /root/.ddh or /home/<username>/.ssh/ )
/project # ssh-agent ash passphrase is Juniper1 ( just because it's easier ) /project # ssh-add /root/.ssh/id_rsa Enter passphrase for /root/.ssh/id_rsa: Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa) /project # ssh-add -l 2048 SHA256:5O9zJxxxxxxxxxxxxxxxxxxxxxxxxxxxxxY /root/.ssh/id_rsa (RSA) /project # ssh-add -L ssh-rsa AAAAB3NzaC1yc2EAAxxxxxxxxxxxVLOqaPmqAbguhcbH /root/.ssh/id_rsa /project # ssh root@192.168.99.11 --- JUNOS 12.1R1.9 built 2012-03-24 12:52:33 UTC root@vMX1%
root@vMX1% ls /root/.ssh/ authorized_keys id_rsa.pub known_hosts set system root-authentication load-key-file /root/.ssh/id_rsa.pub