An open API service indexing awesome lists of open source software.

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.

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).