Create an SSH key pair (2024)

Edit

Share via

  • Article

To access your Microsoft Viva Glint (Secure File Transfer Protocol) SFTP account, create an SSH key pair, which includes a public and private key.

Note

These instructions are for individual users that connect to Viva Glint SFTP. Your organization may have an HR information system (HRIS) connect directly to SFTP to send employee data. Work with your HRIS team to have a SSH key pair generated for the HRIS to allow it to connect.

Understand SSH key pair requirements

To connect to your Viva Glint SFTP account, ensure that the SSH key pair:

  • Has a key length of as least 2048, ideally 4096 bits.
  • Is type RSA in OpenSSH format.

Important

If your organization or HRIS vendor can't generate a key pair in OpenSSH format, convert the public SSH key to OpenSSH format before adding to Viva Glint.

Tip

Passphrases are optional for key files. To omit, leave blank when prompted.

Create an SSH key pair on Microsoft Windows

To create a key pair on Microsoft Windows operating systems:

  1. Download PuTTy Key Generator PuTTygen.exe file and run it.
  2. In the Key menu, select SSH-2 RSA Key.
  3. In Parameters, select the RSA option.
  4. In Number of bits in generated key field, enter at least 2048, ideally 4096.
  5. In Actions, select Generate.
  6. A progress bar appears. In the blank area under the bar, move your pointer in a random pattern to complete key pair generation.
  7. When generation completes, copy the contents of the Public key for pasting into OpenSSH authorized_keys file field and past into a text editor application (like Notepad).

    Important

    Copy the full text of the public key, including ssh-rsa, into the SSH Public Key field when you set up SFTP in General Settings.

  8. Save your file as vivaglint-yyyymmdd.pub.
  9. Key passphrase and Confirm passphrase fields aren't required. Leave blank for no passphrase.
  10. Select Save private key to save the private key file. This key lets you connect to SFTP in a dedicated FTP application.

Create an SSH key pair on Macintosh or Linux

To create a key pair on Macintosh or Linux operating systems:

  1. Open a Terminal window. in Macintosh operating systems, find Terminal in the Dock or in the Utilities folder.
  2. Enter the following command: ssh-keygen -b 2048 -t rsa -C "your_username" -f filename.
    1. The length, determined by -b, should be at least 2048, ideally 4096.
    2. Update your_username and filename values.
    3. Example: ssh-keygen -b 2048 -t rsa -C "jsmith" -f vivaglint-yyyymmdd.
  3. Select enter and follow prompts.
  4. A passphrase isn't required. Supply a passphrase or leave blank and select enter to continue.
  5. When successfully generated, you see these messages:
    1. Your identification has been saved in filename.
    2. Your public key has been saved in filename.pub.
  6. Search for the public and private key files in Finder.
    1. The two key files are named based on what was specified in the Terminal command.
      1. Example: vivaglint-yyyymmdd and vivaglint-yyyymmdd.pub
    2. With no specified file name, the key files appear as: id_rsa and id_rsa.pub.
  7. Open the .pub file (the SSH public key) in a text editor (like TextEdit) and copy the contents.

    Important

    Copy the full text of the public key, including ssh-rsa, into the SSH Public Key field when you set up SFTP in General Settings.

Feedback

Was this page helpful?

Create an SSH key pair (2024)

FAQs

How to create a key pair for SSH? ›

Create an SSH key pair on Microsoft Windows
  1. Download PuTTy Key Generator PuTTygen.exe file and run it.
  2. In the Key menu, select SSH-2 RSA Key.
  3. In Parameters, select the RSA option.
  4. In Number of bits in generated key field, enter at least 2048, ideally 4096.
  5. In Actions, select Generate.
  6. A progress bar appears.
May 24, 2024

How to generate SSH key pair terminal? ›

Generating SSH key pairs locally
  1. In a terminal, type the command ssh-keygen -t rsa, and press enter.
  2. When asked to enter file in which to save the key, press enter without typing in a name. ...
  3. Enter a password for the key pair, and press enter. ...
  4. Upload the public key file (the one ending in .

What is the best practice for SSH key pair? ›

9 SSH Key Management Best Practices You Need to Know
  • Discovery and Inventory. ...
  • Gain Holistic Visibility. ...
  • Monitor Key Usage. ...
  • Automate Key Lifecycle Management. ...
  • Enforce Policies and Governance. ...
  • Generate Strong Keys. ...
  • Rotate Keys Regularly. ...
  • Limit Shared Private Key Usage.

How do I generate a SSH key for a remote server? ›

To generate an SSH key on your Linux server, run the command ssh-keygen . The command can take flags if you would like to customize the type of key that is generated and the signing algorithms that are used to generate the key. This example generates a standard 2048-bit RSA key without a passphrase.

What is a SSH key pair? ›

2. What are SSH Keys? SSH keys are a pair of public and private keys that are used to authenticate and establish an encrypted communication channel between a client and a remote machine over the internet.

How do I find my SSH key pair? ›

Checking for existing SSH keys
  1. Open Terminal .
  2. Enter ls -al ~/.ssh to see if existing SSH keys are present. $ ls -al ~/.ssh # Lists the files in your .ssh directory, if they exist.
  3. Check the directory listing to see if you already have a public SSH key. ...
  4. Either generate a new SSH key or upload an existing key.

How to generate SSH key automatically? ›

The simplest way to generate a key pair is to run ssh-keygen without arguments. In this case, it will prompt for the file in which to store keys. Here's an example: klar (11:39) ~>ssh-keygen Generating public/private rsa key pair.

How to connect ssh with key? ›

The SSH public key authentication has four steps:
  1. Generate a private and public key, known as the key pair. ...
  2. Add the corresponding public key to the server.
  3. The server stores and marks the public key as approved.
  4. The server allows access to anyone who proves the ownership of the corresponding private key.
Aug 10, 2021

How to create a user with SSH key? ›

How to Add Linux SSH Key User
  1. Create a key pair for the new user: ...
  2. Place the generated private key in the local directory: ~/.ssh.
  3. Change to the .ssh directory. ...
  4. Set the permissions on the local key file: ...
  5. Generate a public key from the private key:

Do you need a key pair for SSH? ›

The SSH key pair is used to authenticate the identity of a user or process that wants to access a remote system using the SSH protocol. The public key is used by both the user and the remote server to encrypt messages.

Where should I generate SSH key? ›

Generating SSH keys with PuTTY

It can be obtained from the PuTTY latest release page. Once PuTTY is installed, press the Windows key or open the Windows and type “puttygen” and open the “PuTTYgen” app. In the PuTTY Generator window, make sure that “RSA” is selected at the bottom of the window and click “Generate”.

Who should generate SSH key? ›

Typically a system administrator would first create a key using ssh-keygen and then install it as an authorized key on a server using the ssh-copy-id tool. See also the dedicated page on configuring authorized keys for OpenSSH. We recommend using passphrases for all identity keys used for interactive access.

How to generate SSH key for connection? ›

Open Command Prompt and use the ssh-keygen command with the -C flag to create a new SSH key pair. Replace the following: WINDOWS_USER : your username on the Windows machine. KEY_FILENAME : the name for your SSH key file.

How do I create a SSH host key? ›

5.2 Create a New Host Key
  1. Log in as root.
  2. Terminate any instances of sshd using the server script. ...
  3. Use ssh-keygen to generate a new host key. ...
  4. (Optional) If you use a new host key name and/or location, edit the server configuration file (/etc/ssh2/sshd2_config). ...
  5. Restart the service.

How to setup SSH key for server? ›

How to add new SSH key to a cloud server
  1. Connect to the server using your current key. ssh [email protected] -i /current_private_ssh_key.
  2. Add a public key to the "authorized_keys" file. You can add a public key to the "authorized_keys" file using "nano" text editor (or any text editor of your choice): ...
  3. Verify new key.

How do I create a ssh host key? ›

5.2 Create a New Host Key
  1. Log in as root.
  2. Terminate any instances of sshd using the server script. ...
  3. Use ssh-keygen to generate a new host key. ...
  4. (Optional) If you use a new host key name and/or location, edit the server configuration file (/etc/ssh2/sshd2_config). ...
  5. Restart the service.

How do I create a pair of RSA keys? ›

Generate RSA Keys
  1. Open a shell using Putty or another utility.
  2. Use commands to generate an RSA key file. Type the following command to generate RSA keys: ssh-keygen -t rsa. ...
  3. Navigate to the. rsakey. folder that you created in step 2b. ...
  4. Locate the public key beginning with. ssh. and copy the key.

How to create SSH key login? ›

Generating a new SSH key
  1. Open Terminal .
  2. Paste the text below, replacing the email used in the example with your GitHub email address. ssh-keygen -t ed25519 -C "[email protected]" ...
  3. At the prompt, type a secure passphrase. For more information, see "Working with SSH key passphrases."

How do I create a key pair KeyStore? ›

To get a Key Pair signed by a CA:
  1. First create a new KeyStore.
  2. Either import an existing Key Pair into the KeyStore or generate a new Key Pair in the KeyStore.
  3. Next generate a CSR (Certificate Signing Request) file from the Key Pair.
  4. Send the CSR file to a CA for signing. ...
  5. The CA will send back a CA Reply.

Top Articles
How to Recognize a Fake Breakout?
Romance Scams: Unraveling the Web of Deceit
This website is unavailable in your location. – WSB-TV Channel 2 - Atlanta
Best Transmission Service Margate
Gameday Red Sox
Craigslist - Pets for Sale or Adoption in Zeeland, MI
Top Golf 3000 Clubs
Jesus Revolution Showtimes Near Chisholm Trail 8
Hardly Antonyms
Unit 1 Lesson 5 Practice Problems Answer Key
Lima Funeral Home Bristol Ri Obituaries
24 Hour Walmart Detroit Mi
Unlv Mid Semester Classes
Der Megatrend Urbanisierung
How Much Is Tay Ks Bail
Wausau Marketplace
Days Until Oct 8
Dover Nh Power Outage
Gayla Glenn Harris County Texas Update
Aerocareusa Hmebillpay Com
Jeffers Funeral Home Obituaries Greeneville Tennessee
Sunset Time November 5 2022
Nsa Panama City Mwr
Play Tetris Mind Bender
Pain Out Maxx Kratom
1979 Ford F350 For Sale Craigslist
Feathers
Usa Massage Reviews
Truck from Finland, used truck for sale from Finland
Angel Haynes Dropbox
Rural King Credit Card Minimum Credit Score
Pokemon Inflamed Red Cheats
Wbap Iheart
Big Boobs Indian Photos
Srjc.book Store
Wheeling Matinee Results
What does wym mean?
35 Boba Tea & Rolled Ice Cream Of Wesley Chapel
Upstate Ny Craigslist Pets
404-459-1280
2016 Honda Accord Belt Diagram
Today's Final Jeopardy Clue
Nancy Pazelt Obituary
One Main Branch Locator
„Wir sind gut positioniert“
Search All of Craigslist: A Comprehensive Guide - First Republic Craigslist
2020 Can-Am DS 90 X Vs 2020 Honda TRX90X: By the Numbers
Bustednewspaper.com Rockbridge County Va
Theater X Orange Heights Florida
Haunted Mansion Showtimes Near Millstone 14
Black Adam Showtimes Near Kerasotes Showplace 14
Guidance | GreenStar™ 3 2630 Display
Latest Posts
Article information

Author: Terence Hammes MD

Last Updated:

Views: 6436

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Terence Hammes MD

Birthday: 1992-04-11

Address: Suite 408 9446 Mercy Mews, West Roxie, CT 04904

Phone: +50312511349175

Job: Product Consulting Liaison

Hobby: Jogging, Motor sports, Nordic skating, Jigsaw puzzles, Bird watching, Nordic skating, Sculpting

Introduction: My name is Terence Hammes MD, I am a inexpensive, energetic, jolly, faithful, cheerful, proud, rich person who loves writing and wants to share my knowledge and understanding with you.