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.
- Host: GitHub
- URL: https://github.com/filipporanza/add_key
- Owner: FilippoRanza
- Created: 2018-04-29T19:58:23.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-29T20:02:02.000Z (about 8 years ago)
- Last Synced: 2025-10-26T12:38:55.839Z (8 months ago)
- Topics: bsd, linux, shell-script, ssh, ssh-config, ssh-key, ssh-keys, unix
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.