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

https://github.com/filipporanza/add_key

Helps you to generate ssh keys for remote hosts.
https://github.com/filipporanza/add_key

bsd linux shell-script ssh ssh-config ssh-key ssh-keys unix

Last synced: 2 months ago
JSON representation

Helps you to generate ssh keys for remote hosts.

Awesome Lists containing this project

README

          

# add_key.sh
Helps you to generate ssh keys for remote hosts.

## Description
This tool helps the user during ssh key generation.

You run the tool an it interactively ask for necessary informations:

1. key name (**must be unuque**)
2. remote host (**must be unuque**)
3. remote host's url or IP
4. remote host's service port number (**default 22**)
5. remote user name (can be empty)
6. a comment for the new key (can be empty)
7. an emcryption key for new key (can be empty)

By now new keys are put in _$HOME/.ssh_, and key informations in _$HOME/.ssh/config_

Every new is key a **4096 bit RSA** key.

## Usage
Run **bash add_key.sh**, then follow given request. A new key is generated if
every argument is correct.

Given _urls_ are checked, the tool tries to ping it, in case of failure ask you to know what to do.

When add_key.sh ask for confirm you are supposed to answer _Y or y_ (it's case insensitive) to confirm
and _N or n_ to refuse. There's a _default_ answer that is the **capitalized** letter in the prompt.

## Bugs

Feel free to contact me for every problem.