Skip to content
English
  • There are no suggestions because the search field is empty.

Generating an SSH Key Pair for SFTP Access

If you need to generate an SSH key pair (public and private keys) for one or more of your SFTP users, here’s how you can do that:

For macOS and Unix-Based Systems

You can generate different types of key pairs depending on your requirements:

On macOS and other Unix operating systems, run the following command to generate an RSA key-pair:

ssh-keygen -P '' -f transfer-key

Run the following command to generate an ECDSA key-pair:

ssh-keygen -t ecdsa -b 256 -N '' -m PEM -f transfer-key

Valid values for the -b option for ECDSA are 256, 384, and 521.

Run the following command to generate an ED25519 key-pair:

ssh-keygen -t ed25519 -f transfer-key

  • The public key should be uploaded to Pequity for SFTP setup.

  • The private key should remain securely stored on the user’s local machine and will be used by their SFTP client during login.

For Windows Users

You can generate a key pair using PuTTYgen, a free tool that allows for SSH key generation in Windows environments. Download PuTTYgen here if you don’t already have it installed.