Answers for "use ssh key of old server"


use ssh key of old server

cp /path/to/my/key/id_rsa ~/.ssh/id_rsa
cp /path/to/my/key/ ~/.ssh/
# change permissions on file
sudo chmod 600 ~/.ssh/id_rsa
sudo chmod 600 ~/.ssh/
# start the ssh-agent in the background
eval $(ssh-agent -s)
# make ssh agent to actually use copied key
ssh-add ~/.ssh/id_rsa
Posted by: Guest on August-27-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language