BASH: Generate ssh key

# Generate the key

ssh-keygen -t rsa -b 4096

# Copy to the target machine (use ip or setup hostname in ~/.ssh/config)

ssh-copy-id user@host

# Test
ssh user@host

# Now can connect without password with...
ssh <host>

# easy peasy, no?

"You want a toe? I can get you a toe. There are ways, Dude. You don't wanna know about it, believe me."