git - Adding SSH Keys to remote servers -
i know people suggest way add deployment key remote server, may checkout private git repo.
i've been trying deploy application capistrano keep getting failures ssh keys believe when attempting checkout repository application linked to.
i have tried agent forwarding think might better adding deployment key each remote server , adding key repository.
how best go doing this? i'm looking few simple commands run off against each remote server.
i think yo want copy users' public keys server , add'em ssh, right?
to need following:
copy keys server
copy machine remote machine:
scp key_name.pub git@serverip:key_name.pub
then cat authorized_keys file
cat key_name.pub >> .ssh/authorized_keys
Comments
Post a Comment