JSCAPE
  • Products
    • Managed File Transfer
    • JSCAPE SaaS
    • MFT Gateway
    • MFT Monitor
    • All Products
  • Solutions
    • All Solutions
    • Secure File Transfer
    • AS2 Server Software
    • File Synchronization
    • Reverse Proxy
    • Compliance
    • DMZ Streaming
  • Pricing
  • Company
    • Blog
    • Company
    • Contact Us
    • Clients
    • Case Studies
    • Testimonials
    • Certifications
  • Support
    • Help Desk
    • Documentation
    • Customer Downloads
Get a demo

Two ways to generate an SFTP private key

Words by

John Carl Villanueva

One of the major security features of SSH FTP is public key authentication. This authentication method allows JSCAPE MFT Server to verify a user’s identity during login by asking for only the user’s secret item — an SFTP private key file (SSH key). Using keys to authenticate users while requiring a username and passphrase gives…

Published in:

Blog

/

Managed File Transfer, SFTP

One of the major security features of SSH FTP is public key authentication. This authentication method allows JSCAPE MFT Server to verify a user’s identity during login by asking for only the user’s secret item — an SFTP private key file (SSH key). Using keys to authenticate users while requiring a username and passphrase gives us two-factor authentication.

private key

In this post, we’ll show you how to generate a private key for your SFTP server. We’ll show you two places where a private key file can be obtained.

Interested in a more straightforward way to manage SFTP keys? Schedule a demo today to see how the JSCAPE MFT Server can streamline secure file transfers and simplify key management for better security and compliance.

The first place you can generate an SFTP private key file is in the Key Manager, which can be reached via the JSCAPE MFT Server Manager and can only be accessed by a server admin. The second place is via the JSCAPE MFT Server Web User Interface, which anyone with a user account on the server can access.

Let’s have a look at those two options.

1. Obtaining An SFTP Private Key Via The Key Manager

To generate an SFTP private key pair via the Key Manager, launch the JSCAPE MFT Server Manager, log in, and then go to Keys.

mft server keys module

Next, navigate to the Client Keys tab and click the Generate button.

client keys generate mft server

Fill out the fields in the Generate Client Key dialog. You’ll need to enter the following information:

Key alias – We recommend you use the username of the user account to which this key will be bound.

Key algorithm – Choose between RSA or DSA. Click that link for a thorough discussion of these two key algorithms.

Key length – Choose between 1024 and 2048. Read the post “Choosing Key Lengths for Encrypted File Transfers ” if you need more information.

Validity – Specify how many days you want this key to remain valid.

Common name (CN) – This should be the user’s full name.

Organization unit (OU) – Indicates the specific unit in your organization that will use this key, e.g., Accounting.

Organization (O) – The name of your organization.

Locality (L) – The name of your city.

State/Province (ST) – The name of your state or province.

Country (C) – Your 2-character country code, e.g. “US”.

generate client key

Click the OK button when done.

You’ll then be asked to specify the file name holding this key. Make sure the filename is saved in the PEM format. Otherwise, you won’t be able to use it for SFTP public key authentication. As an added layer of protection, you can also specify a password for this file.

export private key

Click the OK button when done, and then Save the file to your desired folder. Because it is this file that the user will be required to submit during login, you will have to send this file to the user after it has been created. It’s just a file, so you can burn it to a CD or copy it to a USB drive and then transport it securely to the intended user. While it is possible to email the file, email is not a recommended option unless the key is encrypted because emails can be intercepted, and your key will be compromised.

opening private key

After saving the file, you should see your newly created client key in your list of client key certificates.

newly created sftp key

Note that this method can only be carried out by someone with administrative access to your JSCAPE MFT Server. However, it’s also possible for a user to generate another SFTP private key file by themselves. If you want to know how read the next section.

2. Obtaining An SFTP Private Key Via The User Web UI

To obtain an SFTP private key as a user, log in to JSCAPE MFT Server through the Web User Interface.

login jscape mft server user web ui

Once inside, click the link labeled My Account at the upper-right corner of the screen.

jscape mft server user web ui my account

Next, navigate to the section Public Key Authentication and then click Generate Key Pair.

public key authentication generate key pair

Choose an encryption type and length, then select PEM for the file type. You may also specify a password. When done, click the OK button.

generate key pair web ui

The private key file will then automatically download to your SFTP client. Click Save File to save it in your default download folder.

save private key file prv

Be sure to move that file from the download folder to another location only you know.

Bonus Tip

There’s still another way of generating an SFTP private key. Your users can generate their keys locally using third-party software like PuTTYGen. Once the key is generated, they can send it to your server admin, who will import the key into the key manager and bind it with a user account.

Here’s a video that shows you how it’s done:

Public Key Authentication using PuTTY

There, now you know three ways of generating SFTP private key files.

Get Your Free Trial

Would you like to try this yourself? JSCAPE MFT Server is platform-agnostic and can be installed on Microsoft Windows, Linux, Mac OS X, and Solaris. It can handle any file transfer protocol and multiple protocols from a single server. Additionally, JSCAPE enables you to handle any file type, including batch files and XML. Get a free trial of JSCAPE MFT Server with your request.

Related Content

Setting Up SFTP Public Key Authentication On The Command Line

What Port Does SFTP Use?

Guide On How To Set Up An SFTP Server

How To Automatically Transfer Files From SFTP To Azure Blob Storage

Easy To Deploy, Easy To Administer, Easy To Manage

Ready to see how JSCAPE makes managed file transfer so much simpler? Schedule your demo now.

Request a demo

Popular Articles

View more by

JSCAPE
  •  
    1–2 minutes
    23/09/2025

    JSCAPE by Redwood, version 2025.3: New UI continues to make a splash

    Dive back into JSCAPE by Redwood with version 2025.3, bringing more modern UI updates to make using and navigating JSCAPE more intuitive. 

    Read article

  •  
    1–2 minutes
    19/08/2025

    Weathering the economic storm: Expert support is your enterprise file transfer system’s lifeline

    The global economic landscape can be described by one word: “uncertain”. Lingering effects from the 2020 pandemic, combined with new waves of international tariffs throughout 2025, have…

    Read article

  •  
    1–2 minutes
    30/07/2025

    Escape the grip: Why flexible MFT is key to enterprise agility

    Break free from costly vendor lock-in Let’s be blunt: some MFT vendors have built product suites that are less about true partnership and more about proprietary siloing.…

    Read article

  •  
    1–2 minutes
    23/07/2025

    Avoid downtime and threat actors: Getting the best of both worlds in MFT

    For enterprise organizations relying on managed file transfer (MFT) solutions, cybersecurity often feels like an arms race. The need to patch MFT software vulnerabilities to prevent breaches…

    Read article

Related Content

Read more about

JSCAPE MFT
  •  
    1–2 minutes
    30/07/2025

    Escape the grip: Why flexible MFT is key to enterprise agility

    Break free from costly vendor lock-in Let’s be blunt: some MFT vendors have built product suites that are less about true partnership and more about proprietary siloing.…

    Read article

  •  
    1–2 minutes
    03/07/2025

    Consolidate, deploy and thrive: JSCAPE’s formula for MFT success in uncertain times

    Global enterprises today are navigating a landscape marked by significant economic volatility. Fluctuating markets, shifting trade policies and persistent economic uncertainty are compelling enterprise organizations to reevaluate…

    Read article

  •  
    1–2 minutes
    31/03/2025

    SFTP vs. FTPS: Which file transfer software is best for business use?

    What is SFTP? SFTP is a file transfer protocol that’s normally packaged with Secure Shell (SSH), the network protocol most IT administrators use to access and manage…

    Read article

  •  
    1–2 minutes
    25/03/2025

    EDI integration with trading partners: 6 best practices

    Many large companies with high-volume transactions, especially those involved in e-commerce, manufacturing and retail supply chains, have long migrated from manual processes to Electronic Data Interchange (EDI).…

    Read article

Company

  • About Us
  • Contact Us
  • Clients
  • Case Studies
  • Testimonials
  • Privacy Policy
  • Certifications

Resources

  • Managed File Transfer
  • Secure File Transfer
  • Secure FTP Server
  • AS2 Server
  • Reverse Proxy
  • File Upload Processing
  • What Is An AS2 Server?

Support

  • Help Desk
  • Documentation
  • Customer Downloads
JSCAPE

Copyright © 2025 JSCAPE

  • Privacy Policy
  • Cookie Settings