How to Specify a Private Key on PuTTY Command Line

-i Option

The PuTTY -i option allows you to specify a private key file.

A private key file is in *.PPK format. PuTTY will use this file to authenticate with the server.

The Command Line

Use the -i option to specify a private key.

C:\> putty.exe -i privatekey.ppk

You can use the option with a pscp.exe command for the same purpose.

C:\> pscp.exe -i privatekey.ppk filename.txt

Leave a Reply

Your email address will not be published. Required fields are marked *