Some or the other times, there is a need to have a SSH key generated to allow traffic from/to different server. Today I created a SSH key on LINUX machine.
You need to run the command “ssh-keygen -t dsa” on the command prompt.
applerp.R12VIS.adc-al-lnx45>ssh-keygen -t dsa Generating public/private dsa key pair Enter file in which to save the key (/home/applerp/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/applerp/.ssh/id_dsa. Your public key has been saved in /home/applerp/.ssh/id_dsa.pub. The key fingerprint is: 48:80:4f:8f:0a:7b:27:e4:82:a0:33:ab:89:48:67:ed <a href="mailto:firstname.lastname@example.org">email@example.com</a> <em>applerp.R12VIS.adc-al-lnx45></em>
If you need to create 4k RSA SSH key, issue the below command
ssh-keygen -t rsa -b 4096
And once the key is generated, if you would like to view the fingerprint, issue below command
ssh-keygen -lf <complete_path_of_public_key>/id_rsa.pub