https://github.com/w3labkr/sh-sshkeys
This script is an ssh key management script for multi-account users.
https://github.com/w3labkr/sh-sshkeys
bash sh ssh-keygen
Last synced: 20 days ago
JSON representation
This script is an ssh key management script for multi-account users.
- Host: GitHub
- URL: https://github.com/w3labkr/sh-sshkeys
- Owner: w3labkr
- License: mit
- Created: 2021-07-21T11:29:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-26T00:36:47.000Z (almost 5 years ago)
- Last Synced: 2025-03-16T03:39:56.112Z (over 1 year ago)
- Topics: bash, sh, ssh-keygen
- Language: Shell
- Homepage:
- Size: 9.97 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Managing Multiple SSH keys
This script is an ssh key management script for multi-account users. If the SSH key file already exists, only the git host address is modified.
## Download
If you are using Windows x64, download the wget binary file located in the lib directory before running the command.
```sh
$ wget https://raw.githubusercontent.com/w3labkr/sh-sshkeys/master/sshkeys.sh
```
You can download it from the official site.
-
## Usage
Set the execute permission for the file.
```sh
$ chmod u+x ./sshkeys.sh
```
Run from the directory where Git is installed.
```sh
$ ./sshkeys.sh --username= --usermail=
```
The default hostname value is "github.com". To change the hostname, run the following command:
```sh
$ ./sshkeys.sh --username= --usermail= --hostname=
```
To remove all ssh keys registered in the ~/.ssh directory, run the following command:
```sh
$ ./sshkeys.sh --remove-all
```
## License
This software is licensed under the [MIT LICENSE](LICENSE).