I'm working on system where I'm doing
A > B via .sh script and run some commands on B and exit.
When I run
A (Chroot user) > B
It gives me
host key verification failed
from within chroot env, I generated key-gen pair and moved the files to chroot ~home/.ssh
id_rsa.pub moved this to remote system B authorized key
authorized_key contains A pub key
known_hosts is empty
I think I'm using wrong open_ssh I should be using chroot enabled open_ssh , for e.g under chroot env when I doing
ssh email@example.com it gives me same error as above.
What I'm doing wrong!