close

Generate ssh key using puttygen to get public key or private key for authentication over ssh session

1/ Generate SSH Public or Private key on Windows

– Download puttygen.exe and save to your Desktop from https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

  • Click on the puttygen.exe icon to run the program
  • Click Generate button and move-over your laptop mouse, system will generate a hash key until done
  • Now you can save as Public key or Private key as you want for further use
2/ Generate SSH Public or Private key on Linux

[root@virtualserver01 ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): testkey <– Enter keyname or keep default id_rsa
Enter passphrase (empty for no passphrase): <– Enter passphrase or leave blank
Enter same passphrase again: <– Enter passphrase or leave blank
Your identification has been saved in testkey. <– This is private key file
Your public key has been saved in testkey.pub. <– This is public key file
The key fingerprint is:
SHA256:NvbBbrXnpJrNMrDNNY9uaYiXObkXAvDezysMy1lXlug root@virtualserver01.IBM-PoC-Eximbank-PoC.cloud
The key’s randomart image is:
+—[RSA 3072]—-+
| |
| . |
| o . . |
| o. . + |
| .Soo..o |
| o+++oE. |
| . %+@.*o |
| *.#+O=. |
| .+%*.. |
+—-[SHA256]—–+


[root@virtualserver01 ~]# ls
redhat_subscription.log s3fs-fuse-master s3fs-fuse-master.zip testkey testkey.pub
[root@virtualserver01 ~]# cat testkey
—–BEGIN OPENSSH PRIVATE KEY—–
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
NhAAAAAwEAAQAAAYEAvwsNzaj49e0NjTE3WgFWIP6sqET66qQp0N95sKekgssBuuBjfnBb
XNxO4Hle63z6m/5ppKUZUjRCbMgxfGQ5JLnRQoJZ9TJfou+2hyZ6cWvCxIUiYxJpfvMuzN
3AExgHdjw+GzAwb+PLO52K/KhlPX1UKMWRPZVzPqYG6R7SpTo+PEvi+/6YFHarnk6t6t6x
PrRJagmVmrVfLCfr1RebOGiI1TR4aZ2GrlwNXecGKOlJxBiTjo52K79Vd1Ahi4SQ/deFsL
BjQvWul4Covw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klCTS1Qb0MtRXhpbWJhbmst
UG9DLmNsb3VkAQID
—–END OPENSSH PRIVATE KEY—–

Tags : AIXAutomationBeautifulSoupCloud Object StorageDevOpsLinux-UnixPythonSeleniumTestingtransfer data from cloud object storage to AIX
Tech2FunAdmin

The author Tech2FunAdmin

Leave a Response

error: Content is protected !!