0

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

id_rsa

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 abc@1.2.3.4 it gives me same error as above.

What I'm doing wrong!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.