You can follow below steps to import ssh private key to Xshell successfully.
- Open putty-keygen and import the private key.
2. Once loaded, Go to "Conversions" and then "Export OpenSSH Key"
3. Then choose a location to save the private key file and click "Save".