I would like to be able to use locally added ssh key to agent on remote host without calling ssh-add on remote.
john@john-VirtualBox:~$ ssh-add ~/.ssh/ansusersu_rsa Enter passphrase for /home/john/.ssh/ansusersu_rsa: Identity added: /home/john/.ssh/ansusersu_rsa (ansusersu@galaxy) john@john-VirtualBox:~$ ssh email@example.com 'sudo whoami' root john@john-VirtualBox:~$ ssh firstname.lastname@example.org 'sudo whoami' root john@john-VirtualBox:~$ ssh email@example.com 'ssh firstname.lastname@example.org '"'"'sudo whoami'"'"'' Host key verification failed.
What I mean, after I loaded key to agent I'm able to connect to both hosts 192.168.0.3 & 192.168.0.2. When I execute a command on 192.168.0.3 in there I do some access to 192.168.0.2 and now it shows "Host key verification failed", but I would like to make it work. Is it possible to make it work? In reality I need to do on 192.168.0.3 rsync of a folder from 192.168.0.2.