random sub rosa
random work-related stuff that's useful to me...
Sunday, September 28, 2008
Using PKI with SSH
If you're concerned about the
global increase in brute-force SSH login attempts
, you can use PKI to prohibit successful unauthorized authentication through password guessing.
Generate key pair
# keygen -b 1024 -t rsa -f ./rsa_id_clientname
Add/append public key to ~/.ssh/authorized_keys file on the target
Add/append a few lines to ~/.ssh/config on the client
Host
User
IdentityFile ~/.ssh/
Attempt new SSH session
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment