my nomenclature for keys is the following:
id_typeofencryption_clientboxname.application
here's how to create an additional key and place it on the target (client) box:
# ssh-keygen -t rsa -b 2048 -f id_rsa_client.rsync # ssh user@client <- it is a good idea to see if you can connect to the client before the next step # cat id_rsa_client.rsync.pub | ssh user@client 'sh -c "cat >> .ssh/authorized_keys2"' # ssh -l user -i id_rsa_client.rsync client
got it?
this is particularly useful if you want to run a specific command when a client connects; say, update files, move things around. neato.
No comments:
Post a Comment