A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.scaleway.com/en/docs/organizations-and-projects/how-to/create-ssh-key/ below:

How to generate an SSH key pair

  1. Home
  2. Organizations and Projects
  3. How to
  4. How to generate … an SSH key pair
How to generate an SSH key pairReviewed on April 01, 2025

SSH keys allow you to securely connect to your Instances, Elastic Metal servers, and Mac minis without using a password. An SSH key consists of a key pair, which has two elements:

You can generate the SSH key pair on your local machine. The process will depend on your operating system.

We recommend you use either:

Before you start

To complete the actions presented below, you must have:

How to generate an SSH key pair How to generate an Ed25519 SSH key pair

Ed25519 SSH key pairs allow you to connect to your Linux-based Instances from a macOS, Linux or Windows machine.

How to generate a RSA SSH key pair

RSA SSH key pairs allow you to connect to your Windows-based Instances from a macOS, Linux or Windows machine. RSA (Rivest-Shamir-Adleman) is a prevalent asymmetric cryptographic algorithm used for secure data transmission.

Note

We recommend you use Ed25519 keys for SSH connections to your Linux Instances.

  1. Open a terminal or command prompt on your local machine. This could be Terminal on macOS/Linux or the Command Prompt/PowerShell on Windows.

  2. Run the following command to generate the RSA key pair:

    ssh-keygen -t rsa -b 4096 -C "login@example.com" -o -a 100
  3. This command will generate two files:

    Important

    Ensure that the private key file (<key_name>) is kept secure. Do not share it with unauthorized parties. You can set appropriate permissions on the file to restrict access using the following command:

How to upload the public SSH key to the Scaleway interface

You must upload the content of the public part of the SSH key pair you just generated to the Scaleway interface. This is then transferred to your Instance during the boot process. You can then connect and authenticate from your local machine, where your private key is stored, to the remote Instance, where the public key can be found.

  1. Go to your Project dashboard.

    Tip

    Check if you are in the right Project before proceeding. You can check your current Organization and Project in the top-left corner of the Scaleway console. If you wish to change your Project, click the current Project name in the breadcrumb navigation and select a different existing Project in the drop-down. Click Create Project to create a new one.

  2. Click + Add SSH key. A popup displays.

  3. Enter a name for your SSH key, paste the content of the public key copied earlier into the Public key box, then click Add SSH key.

    You can now connect to your Instances via SSH.

Troubleshooting

If you have any difficulties connecting to an Instance after uploading a new public SSH key to your Project, try the following:

For further information, refer to the dedicated SSH connection troubleshooting documentation.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4