How to create SSH is basically used to take the remote access of a Server with Secure connection. We can create and generate an ssh key in Linux. The ssh private key location is in a hidden directory.
How To Create SSH With OpenSSH For User:
We access the Linux servers using these keys and when we don’t want password-based authentication on the server. we can directly access Linux to Linux machine using pem file but you’re accessing Linux machine from windows then you will have to covert it to ppk.
Create an SSH Key ssh-keygen
Or you may also use ssh-keygen -t rsa 2048
The key stored here in hidden folder .ssh and you can find using below command.
id_rsa.pub is your SSH public key has created.
That’s it ssh private key location linux generate create