Generating an SSH key
Secure Shell (SSH) is an encrypted protocol used to administer and communicate with servers. An SSH key is an access credential in the SSH protocol, symbolizing encrypted passwords that facilitate authentication to establish a connection to the server.
About this task
There are multiple ways in which a key file can be generated in the client system. Example: ssh-keygen, putty keygen. Follow the below steps to generate the SSH keys & capture the private & public key content to be specified for Keys’ Content-based authentication.
Procedure
-
Start the command prompt and execute the
ssh-keygen -m PEMcommand. If the "ssh-keygen" command is used without any parameters, it generates the key in the OpenSSH format. In that case, the key should be converted to PEM format to use it in the SFTP connector. -
Press Enter key, if prompted.
-
Enter a password, when prompted. This step is required to generate password protected SSH key files. This password should be provided in the SFTP connector connection settings, if SSH Key File Path-based authentication is used.
-
Press Enter key, if prompted.
-
Follows the prompts, until it generates an SSH key with random art image.
-
Navigate to the folder
C:\\Users\\<user-name>\\.ssh, and check for the two key files generated. The private key file is called id_rsa and the associated public key is called id_rsa.pub. -
Open the key file with a text editor, copy, and use the content in the "Private Key Content" and "Public Key Content" field respectively.