Skip to content

Instantly share code, notes, and snippets.

@madaarya
Last active May 23, 2020 05:25
Show Gist options
  • Save madaarya/201cf258daaec1dae5500ebd3cd6386b to your computer and use it in GitHub Desktop.
Save madaarya/201cf258daaec1dae5500ebd3cd6386b to your computer and use it in GitHub Desktop.
Shell script for change ssh key
#!/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
@madaarya
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment