SSH

Learn how to securely connect to Linux instances on Pictor using SSH

About SSH

What is SSH?

SSH (Secure Shell Protocol) is a protocol for securely connecting to remote servers. It encrypts your connection, allowing you to:

  • Log in safely

  • Run commands remotely

  • Transfer files without exposing your data

SSH Connection on Pictor

You can access Linux instances rented on Pictor using SSH. When connecting via SSH, you authenticate using a private key file on your local machine.

To establish an SSH connection to your Pictor Linux Instances, you need an SSH key pair. This pair consists of:

  • Public Key: This key will be added to the Pictor Instance configuration to grant access.

  • Private Key: This key will be used for authentication during instance connection. You must keep it absolutely secret on your local machine.

If you're unsure whether you already have an SSH key, you can check for existing SSH keys.

If you don't already have an SSH key, you must generate a new SSH key.

If you already have an SSH key, you must add your SSH public key to your Pictor account for SSH connection.

To maintain account security, you should regularly review your SSH keys and delete any keys that are invalid or have been compromised.


Check for existing SSH keys

Before generating a new SSH key, you should check for existing keys on your local machine.

1

Open Terminal

Open a Terminal application on your machine.

For example, use PowerShell or Command Prompt on Windows, Terminal.app on macOS, or a Terminal Emulator (like Gnome Terminal or Konsole) on Linux.

2

Check for existing SSH keys.

Enter the command to see if existing SSH keys are present.

  • On Windows PowerShell, enter

Get-ChildItem -Path $HOME\.ssh -Force
  • On Windows Command Prompt, enter:

dir %USERPROFILE%\.ssh
  • On macOS Terminal.app, enter:

ls -al ~/.ssh
3

Check the directory listing

  • If you already have a public SSH key, you will see:

  • If you don't have a public SSH key, you will see:

4

Generate a new SSH key or Add an existing one.


Generate a new SSH key

If you don't already have an SSH key pair or don't wish to use any existing key, you can generate a new SSH key.

Follow the steps below to generate a key pair in your terminal:

Note:

The ssh-keygen command is a standard utility and is executed the same way across all terminal applications.

We will guide you through the process using Windows PowerShell.

1

Enter the Keygen Command

Type this command into the PowerShell and press Enter

ssh-keygen -t ed25519 -C "[email protected]"

-C “[email protected]” is optional.

Anything entered there will be saved as a comment in the public key file (for example, id_ed25519.pub). This comment is intended for identification purposes, which can be helpful if you use multiple keys; it is not intended for security purposes.

2

Specify the Key Storage Location

Choose where you want to store the key files.

  • To use the default path: simply press Enter.

  • To use a custom filename/path: type the desired path/filename (e.g., C:\Users\<YourUsername>\.ssh\your_custom_filename) and press Enter

Save to the default path
3

Add Passphrase

The Passphrase is an additional layer of security. Adding a passphrase is the most crucial step for securing your Private Key. Even if someone obtains your Private Key file, they will not be able to use it without this passphrase.

Type your passphrase and press Enter.

Type the same passphrase again to confirm and press Enter.

Note:

  • The passphrase you type will not be visible on the screen for security reasons.

  • Leaving it empty (just pressing Enter) means your key will not have passphrase protection.

4

SSH key is created

Upon successful completion, the system will confirm that your SSH key pair has been saved and is ready for use.

The key comes in pairs:

  • id_ed25519: your private key

Keep it safe, never share. You will need this key to access the rented instance via the terminal applications.

  • id_ed25519.pub: your public key

Safe to share. You will add this key to your Pictor account (before creating the instance).


Add SSH key to Pictor account

Your SSH key generation process created two files in the location you specified.

  • Private Key: id_ed25519 (Keep this file private and secure.)

  • Public Key: id_ed25519.pub (This is the key you need to add to your Pictor account)

Before you can create and connect to your rented GPU instance, you must add your Public SSH Key to your Pictor account. This key acts as your secure credential for authentication.

1

Open the Terminal

Open a Terminal application on your machine.

For example, use PowerShell or Command Prompt on Windows, Terminal.app on macOS, or a Terminal Emulator (like Gnome Terminal or Konsole) on Linux.

2

Run the command

  • On Windows PowerShell, assuming C:\Users\<YourUsername>\.ssh\id_ed25519.pub is your public key filepath, enter:

cat C:\Users\<YourUsername>\.ssh\id_ed25519.pub
  • On Windows Command Prompt, assuming C:\Users\<YourUsername>\.ssh\id_ed25519.pub is your public key filepath, enter:

type C:\Users\<YourUsername>\.ssh\id_ed25519.pub
  • On macOS Terminal.app, assuming id_ed25519.pub is your public key file, enter:

cat ~/.ssh/id_ed25519.pub
3

Get the public key

The terminal will display the entire Public Key as a line of text.

Copy this entire output, starting with ssh-ed25519 and including the comment at the end ([email protected] here, for example)

4

Add the key to your Pictor account

  • Go to app.pictor.network >> Navigate to GPU Renting page on the sidebar >> Under the Instances tab, choose Manage SSH Keys button.

  • Click Add New SSH Key >> enter your Key Name and paste your Public Key >> Click Create SSH Key.


Review SSH keys

To maintain account security, you should regularly review your SSH keys list and delete any keys that are no longer valid (or may be compromised).

How to review your SSH keys:

  1. Navigate to GPU Renting page on the sidebar >> Manage SSH Keys

  2. Click the View button on each key to review its details, such as:

  • Created time

  • Public key

  • Machines currently connected using this SSH key

Delete SSH key:

You should delete SSH keys if you don't recognize them, if the keys are outdated, or if they may have been compromised.

To delete a key, simply click the Delete button next to it.

Last updated