-2

I setup both machine A and B with same OS version. Then setup the same docker images and container. In the container setup the ssh trust. But, I found if in A ssh to B works. The reverse can not work. On the B machine, if I call following command still require password.

ssh localhost hostname

I have tried check every steps. But can not figure out what's the problem.

  • Rocky Linux 8.8
  • openssh-8.0p1-19.el8_8.x86_64
  • openssh-server-8.0p1-19.el8_8.x86_64

ssh -vvv from B to B shows

debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/myid/.ssh/id_rsa RSA SHA256:uJiAprhqWPzfWfaCMdPZArT3bIfZbA2riqNaGCA8NXU
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /home/myid/.ssh/id_dsa
debug3: no such identity: /home/myid/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /home/myid/.ssh/id_ecdsa
debug3: no such identity: /home/myid/.ssh/id_ed25519
debug3: no such identity: /home/myid/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: /home/myid/.ssh/id_xmss
debug3: no such identity: /home/myid/.ssh/id_xmss: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
Daniel YC Lin
  • 15,050
  • 18
  • 63
  • 96

0 Answers0