I’ve set up Linux machines to allow seamless access from other machines in the past but haven’t done that in some time. I’m going to write up those instructions here as I do them this time so I have them available as needed in the future.
ssh-keygen -t rsa
ssh b@B mkdir -p .ssh
cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'