On Wed, 19 Apr 2023, Russell Senior wrote:

I find it is pretty helpful to read the messages. If the messages are too
terse, add verbose or debug flags. Then read what it says.
Is there anything listening on caddis's port nnnnn?

Russell,

My apologies; I completely forgot to use the -v option to ssh.

Looking at the output of 'ssh -vvv salmo' (because it has more details than
1 or 2 vs) shows everything working until a public key packet is sent and
received, yet there's no reason I see why it quits then:

debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /home/rshepard/.ssh/id_ed25519 ED25519 
SHA256:hYzUmycAbseyYetGxTEN+LN56sffyLVysiwVB7S3ZKQ
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: 
server-sig-algs=<ssh-ed25519,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey,keyboard-interactive,password
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/rshepard/.ssh/id_ed25519 ED25519 
SHA256:hYzUmycAbseyYetGxTEN+LN56sffyLVysiwVB7S3ZKQ
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
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
rshepard@salmo: Permission denied (publickey).
[rshepard@caddis ~]$

Caddis' public key is in salmo's authorized_keys, and vice-versa.

Rich

Reply via email to