search | index | tags | login/register

SSH: key based authentication (by damian)

To generate a SSH key-pair, use shell command:

More advanced usage would be:


SSH Key deployment: After creating the private/public key pairs, deploy the public keys to the ssh server host over a secure channel (e.g. ''scp''):
  • scp ~/.ssh/id_rsa.pub user@host:~/.ssh/import.pub
Note: the target directory ''~/.ssh/'' on the remote must exist; ''0700 -rw------- is a good idea!''

Now Log into the remote host and add the copied public key to the authorized_keys file:
  • cd ~/.ssh/
  • cat import.pub >> auhorized_keys
  • chmod 400 authorized_keys
Tags:
#access #auth #authentication #based #key #linux #passwordless #remote #secure-shell #shell #ssh #unix

Info:
Attribute(s): Public
Created: 02.02.2012 10:18   Total Views: 315
Last Changed: 05.04.2013 12:51   Total Changes: 2
Δt = 0.07362699508667s