Tools to manage the ssh keys of a user profile.
You can use these tools on a Bash or PowerShell terminals.
- clone project into
~/.sshfolder- git clone https://github.com/tiagomapmarques/ssh-tools.git ~/.ssh
- add appropriate script to a terminal profile
- Bash: add
source ~/.ssh/ssh-tools.shto~/.bash_profile - PowerShell: add
~/.ssh/ssh-tools.ps1to~/Documents/PowerShell/profile.ps1
- Bash: add
- restart your terminal
- create new ssh key with
ssh-create <profile> <email> "<username>" - list existing keys with
ssh-list - check active ssh key with
ssh-which - switch to an existing key with
ssh-switch <profile> - save active ssh key and configuration with
ssh-stash
WARNING: If you already have a key before cloning the repo, you can add it to the tool by using
ssh-stash <profile>- this will force the tool to create a new profile with the existing key. Do not usessh-createfor this or your existing key may be overwritten.
cd ~/.sshgit pull
- Bash or Powershell 7
- ssh-keygen