I had keys set up for SSH'ing to a remote server without password, however they no longer work. The only change I can think of is that I install HomeBrew - I did not update / install a new OpenSSH.
My approach for keys:
% ssh-keygen -t rsa
Copy id_rsa.pub to remote server and append to
~/.ssh/authorized_keys
But now I am being asked for passwords each time I login. Is this related to HomeBrew? My friend is able to access the same server using the same approach on the same model of MacBook Pro, prior to installing HomeBrew.
Edit:
% ssh -vvv host
...
debug1: Offering public key: /Users/jamieborder/.ssh/id_rsa RSA SHA256:1WyWpE6/LdZHP5lbhWF9I8rF4NUBhopfTm9nJ/2Iros explicit
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,password,keyboard-interactive
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug3: send packet: type 50
debug2: we sent a keyboard-interactive packet, wait for reply
debug3: receive packet: type 60
debug2: input_userauth_info_req: entering
debug2: input_userauth_info_req: num_prompts 1
...
ssh -vvv hostsay the problem is?