Category Archives: Uncategorized

SSH Linux login without password

Below is probably the quickest way to achieve this

 

1. Generate SSH key (if you don’t have one already)

ssh-keygen -t rsa

 

2. Use SSH to create a remote directory ~/.ssh

ssh username@dev.company.com mkdir -p .ssh

 

3. Append your public key to .ssh/authorized_keys on remote host

cat ~/.ssh/id_rsa.pub | ssh username@dev.company.com 'cat >> .ssh/authorized_keys'

 

 

That’s it!