Two Ways To Generate An SFTP Private Key | JSCAPE (2024)

Words By John Carl Villanueva

Last Updated:

One of the security features of SFTP is public key authentication. Learn 2 options for generating an SFTP private key file with the JSCAPE MFT Server.

  1. Blog
Two Ways To Generate An SFTP Private Key | JSCAPE (1)

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

Two Ways To Generate An SFTP Private Key | JSCAPE (2)

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

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 hence can only be accessed by a server admin. The second place is via the JSCAPE MFT Server Web User Interface and can be accessed by anyone with a user account on the server.

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, login, and then go to Keys.

Two Ways To Generate An SFTP Private Key | JSCAPE (3)

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

Two Ways To Generate An SFTP Private Key | JSCAPE (4)

Fill up 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 this key will be binded with.

Key algorithm - Choose between RSA or DSA . Click that link for a thorough discussion on 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 on the subject.

Validity - Specify how many days you would like this key to remain valid.

Common name (CN) - This should be the full name of the user.

Organization unit (OU) - Indicates the specific unit in your organization that will be using 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".

Two Ways To Generate An SFTP Private Key | JSCAPE (5)

Click the OK button when done.

You'll then be asked to specify the name of the file that will hold 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.

Two Ways To Generate An SFTP Private Key | JSCAPE (6)

Click the OK button when done and then Save the file to your desired folder. Because it is this file which 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.

Two Ways To Generate An SFTP Private Key | JSCAPE (7)

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

Two Ways To Generate An SFTP Private Key | JSCAPE (8)

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.

Two Ways To Generate An SFTP Private Key | JSCAPE (9)

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

Two Ways To Generate An SFTP Private Key | JSCAPE (10)

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

Two Ways To Generate An SFTP Private Key | JSCAPE (11)

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

Two Ways To Generate An SFTP Private Key | JSCAPE (12)

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

Two Ways To Generate An SFTP Private Key | JSCAPE (13)

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

Bonus Tip

There's still another way of generating an SFTP private key. Your users can actually generate their own keys locally using a third party software like PuTTYGen. Once the key is generated, they can send them to your server admin, who will then import the key into the key manager and then 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, and can handle any file transfer protocol as well as multiple protocols from a single server. Additionally, JSCAPE enables you to handle any file type, including batch files and XML. Download your free 7-day trial of JSCAPE MFT Server now.

Download JSCAPE MFT Server Trial

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

As an expert in the field of secure file transfer protocols and server administration, I have a comprehensive understanding of the concepts discussed in the article by John Carl Villanueva, dated December 11, 2022. Public key authentication in the context of SSH FTP (SFTP) is a crucial aspect of securing file transfers, and I will delve into the details of the two options presented for generating an SFTP private key file using the JSCAPE MFT Server.

1. Public Key Authentication in SFTP: Public key authentication is a method that allows the JSCAPE MFT Server to verify a user's identity during login by requesting a secret item possessed only by the user—an SFTP private key file (SSH key). This approach, in conjunction with a username and passphrase, provides a two-factor authentication mechanism, enhancing the overall security of the file transfer process.

2. Key Generation via JSCAPE MFT Server: The article outlines two locations where an SFTP private key file can be generated: the Key Manager accessible through the JSCAPE MFT Server Manager (for server admins) and the JSCAPE MFT Server Web User Interface (for users with a server account).

a. Obtaining via Key Manager:

  • Access the Key Manager through the JSCAPE MFT Server Manager.
  • Navigate to the Client Keys tab and click the Generate button.
  • Complete the Generate Client Key dialog with information such as key alias, algorithm (RSA or DSA), key length, validity, common name, organization details, etc.
  • Specify the file name in PEM format and set a password for additional security.
  • Save the file, ensuring it is securely delivered to the user for login.

    b. Obtaining via User Web UI:

  • Log in to JSCAPE MFT Server through the Web User Interface.
  • Access My Account and navigate to Public Key Authentication.
  • Click Generate Key Pair, choose encryption type and length, select PEM for file type, and optionally set a password.
  • Save the downloaded private key file in a secure location known only to the user.

    c. Bonus Tip - Third-Party Software:

  • Users can generate their SFTP private keys using third-party software like PuTTYGen.
  • Users send the generated keys to the server admin, who imports them into the Key Manager and binds them with a user account.

3. Security Considerations:

  • Emphasizes the importance of saving private key files in PEM format for compatibility with SFTP public key authentication.
  • Recommends avoiding email for transferring keys due to security concerns, suggesting alternative secure methods such as burning to CD or copying to a USB drive.

4. Additional Resources:

  • Provides a bonus tip on another method for users to generate SFTP private keys using third-party software, specifically PuTTYGen.
  • Encourages readers to explore JSCAPE MFT Server through a free trial, highlighting its platform-agnostic nature and versatility in handling various file transfer protocols.

In conclusion, the article provides a comprehensive guide on SFTP private key generation, catering to both server administrators and users, and underscores the significance of secure practices in the process.

Two Ways To Generate An SFTP Private Key | JSCAPE (2024)

FAQs

Two Ways To Generate An SFTP Private Key | JSCAPE? ›

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.

How do I generate a private key for SFTP? ›

To generate a private key, enter the commands as shown:
  1. ssh-keygen -t rsa.
  2. Generating public/private rsa key pair.
  3. Enter file in which to save the key (/home/ofsaapp/. ...
  4. Created directory '/home/ofsaapp/. ...
  5. Enter passphrase (empty for no passphrase):
  6. Enter same passphrase again:

What are the different types of SFTP keys? ›

SFTP Authentication
  • User (Client) Public Key.
  • User (Client) Private Key.
  • Host (Server) Public Key.
  • Host (Server) Private Key.

How to generate public key for SFTP in Unix? ›

Steps
  1. At the command line prompt, type ssh-keygen -t rsa.
  2. You will then be asked to choose a save location for the keys. You can choose the default by pressing enter . ...
  3. Still in the terminal paste the following command: type %UserProfile%\. ssh\id_rsa. ...
  4. Enter your password.

What are the authentication options for SFTP? ›

There are two methods of SFTP authentication: password authentication and SSH key authentication. Inbound SFTP connections to an Unqork Environment must use an Amazon Web Services SFTP Gateway and SSH key authentication.

How can I generate private key? ›

Steps to Create Public/ Private Key Pair
  1. Step 1: Creating a Private Key. Type command openssl, hit enter and then use the following command to create private key: genrsa -out myprivatekey.pem. ...
  2. Step 2: Create Public Key. Type command openssl, hit enter and then use the following command to create public key:
Jan 2, 2023

How to generate a private key in SSH command? ›

Generate an SSH Key Pair
  1. Run the ssh-keygen command. You can use the -t option to specify the type of key to create. ...
  2. The command prompts you to enter the path to the file in which you want to save the key. ...
  3. The command prompts you to enter a passphrase. ...
  4. When prompted, enter the passphrase again to confirm it.

How to generate a private key for FileZilla? ›

In your system tray, you'll see the Pageant icon appear. Right-click the icon and select "Add Key" and select your private key (PPK) file. Follow the prompt to enter your pass phrase and you're done. Now simply launch FileZilla and connect to your server using SFTP using SSH-2 with a username and an empty password.

How to generate SSH public and private key in Windows? ›

For Windows 10 & 11
  1. Press the Windows key or open up the Start Menu. Type “cmd”.
  2. Under “Best Match”, click “Command Prompt”.
  3. In the command prompt, use the ssh-keygen command: ...
  4. The system will now generate the key pair and display the key fingerprint and a randomart image. ...
  5. Open your file explorer.

What is the host key in SFTP? ›

SSH host keys are public/private key pairs that belong to SSH and SFTP servers. They are used by clients to verify the identity of the server when connecting. The private key is stored server side, while the public key is presented to the client during the connection operation.

What is SFTP key authentication? ›

Overview. SFTP public keys are used as an alternative authentication method for establishing secure FTP connections when importing and exporting contacts. Instead of authenticating with a password, the public key authentication uses a pair of keys, one private and one public.

How do I create SFTP credentials? ›

From your Certify homepage, navigate to the Configuration screen by clicking the gear icon in the top right corner.
  1. Click Manage SFTP Configuration under View and Edit Integrations.
  2. Click Create to start creating SFTP credentials.
  3. A popup window to Create Credentials appears with an auto-generated password.

What is the secret key in SFTP? ›

An SFTP key is part of a two-factor authentication process that enhances the security of SFTP protocols by adding a layer beyond just passwords. It involves a pair of keys: a private key held by the user and a public key stored on the server.

How to generate ssh key for SFTP in Windows? ›

For Windows 10 & 11
  1. Press the Windows key or open up the Start Menu. Type “cmd”.
  2. Under “Best Match”, click “Command Prompt”.
  3. In the command prompt, use the ssh-keygen command: ...
  4. The system will now generate the key pair and display the key fingerprint and a randomart image. ...
  5. Open your file explorer.

How do I create an SFTP access? ›

Step-by-step instructions for setting up a Windows SFTP server
  1. Step 1: Install OpenSSH. Download the latest version of OpenSSH. ...
  2. Step 2: Activate SSHD and the SSH agent. ...
  3. Step 3: Open an SSH port. ...
  4. Step 4: Create SFTP connection. ...
  5. Step 5: Upload files to the Windows SFTP server.
Oct 12, 2023

Can we generate SSH private key from public key? ›

You cannot generate private key from public key but you can generate public key from the private key using puttygen.

Top Articles
IPOs Of The Smallest Companies Post Astonishing Failure Rates, But Bankers Still Win - Top World News Today
Building a $10,000 Options Portfolio from Scratch! - Tradersfly
Victor Spizzirri Linkedin
Prosper TX Visitors Guide - Dallas Fort Worth Guide
Athletic Squad With Poles Crossword
Noaa Weather Philadelphia
Music Archives | Hotel Grand Bach - Hotel GrandBach
Evita Role Wsj Crossword Clue
Campaign Homecoming Queen Posters
Craigslist Chautauqua Ny
Bc Hyundai Tupelo Ms
Robert Malone é o inventor da vacina mRNA e está certo sobre vacinação de crianças #boato
Blog:Vyond-styled rants -- List of nicknames (blog edition) (TouhouWonder version)
Summoners War Update Notes
Classroom 6x: A Game Changer In The Educational Landscape
Forest Biome
Violent Night Showtimes Near Century 14 Vallejo
Pasco Telestaff
Sadie Sink Reveals She Struggles With Imposter Syndrome
Renfield Showtimes Near Paragon Theaters - Coral Square
4 Times Rihanna Showed Solidarity for Social Movements Around the World
Craigslist Pasco Kennewick Richland Washington
Tom Thumb Direct2Hr
Japanese Emoticons Stars
Elanco Rebates.com 2022
Lininii
Broken Gphone X Tarkov
Brenda Song Wikifeet
Salons Open Near Me Today
Spy School Secrets - Canada's History
Jay Gould co*ck
The Pretty Kitty Tanglewood
The Legacy 3: The Tree of Might – Walkthrough
10 Most Ridiculously Expensive Haircuts Of All Time in 2024 - Financesonline.com
Family Fare Ad Allendale Mi
New York Rangers Hfboards
Cherry Spa Madison
Froedtert Billing Phone Number
Fapello.clm
2 Pm Cdt
Craigs List Hartford
1Exquisitetaste
Gopher Hockey Forum
Mudfin Village Wow
Pike County Buy Sale And Trade
Avatar: The Way Of Water Showtimes Near Jasper 8 Theatres
Stoughton Commuter Rail Schedule
Superecchll
28 Mm Zwart Spaanplaat Gemelamineerd (U999 ST9 Matte | RAL9005) Op Maat | Zagen Op Mm + ABS Kantenband
Sdn Dds
Latest Posts
Article information

Author: Jeremiah Abshire

Last Updated:

Views: 6061

Rating: 4.3 / 5 (54 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Jeremiah Abshire

Birthday: 1993-09-14

Address: Apt. 425 92748 Jannie Centers, Port Nikitaville, VT 82110

Phone: +8096210939894

Job: Lead Healthcare Manager

Hobby: Watching movies, Watching movies, Knapping, LARPing, Coffee roasting, Lacemaking, Gaming

Introduction: My name is Jeremiah Abshire, I am a outstanding, kind, clever, hilarious, curious, hilarious, outstanding person who loves writing and wants to share my knowledge and understanding with you.