Skip to content

Helps you to generate ssh keys for remote hosts.

Notifications You must be signed in to change notification settings

FilippoRanza/add_key

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages