Last active
May 23, 2020 05:25
-
-
Save madaarya/201cf258daaec1dae5500ebd3cd6386b to your computer and use it in GitHub Desktop.
Shell script for change ssh key
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
#!/bin/bash | |
set -x | |
git config --global user.email lokerm*d*@gm*il.com; | |
git config --list | |
rm .ssh/id_rsa* | |
cp .ssh/madha/id_rsa* ~/.ssh/ | |
cat .ssh/id_rsa.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and then set the file executable with command:
chmod +x freelance_start
Voila!
So when want to use/change the ssh, just run:
./freelance_start