How to ssh without password

On client side, (the machine you want ssh to)
Run the next command.
Use the default settings and an empty passphrase:
# ssh-keygen -t rsa

On the remote machine, (the machine you want ssh from)
Run the next line:
# ssh user@remote test -d \~/.ssh \|\| mkdir \~/.ssh \; cat \>\> \~/.ssh/authorized_keys <~/.ssh/
don't forget to change the user@remote to your own one.

you can copy the from the clinet machine with :
# ssh-copy-id -i ~/.ssh/ username@remotebox


1 comment: