ssh without password

Been remoting to various servers recently rectifying load balancing. This saves me digging around passwords for each server. more time to do real work.

on local do:

ssh-keygen -t rsa


cat .ssh/id_rsa.pub | ssh username@destination.server.local -p 22 'cat >> .ssh/authorized_keys'

finally test:

ssh destination.server.local -p 22

If it still doesn’t work. please login remotely and change the files in .ssh/ to 600. this was needed on a centos.

Be the first to comment

Leave a Reply

Your email address will not be published.


*