Created
April 23, 2019 09:24
-
-
Save Dimon70007/e91ad3006930e84936fe2605320e2b9a to your computer and use it in GitHub Desktop.
copy ssh key to new system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp /path/to/my/key/id_rsa ~/.ssh/id_rsa | |
cp /path/to/my/key/id_rsa.pub ~/.ssh/id_rsa.pub | |
# change permissions on file | |
sudo chmod 600 ~/.ssh/id_rsa | |
sudo chmod 600 ~/.ssh/id_rsa.pub | |
# start the ssh-agent in the background | |
eval $(ssh-agent -s) | |
# make ssh agent to actually use copied key | |
ssh-add ~/.ssh/id_rsa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment