cloud-init script.
Before connecting, confirm that firewall rules allow incoming SSH traffic on port 22. A Bare Metal server must already exist in the target region.
Windows Bare Metal servers cannot be accessed via SSH. Connect through RDP or console access instead. Linux servers support SSH or the same console option.
Connect with SSH keys
To connect with SSH keys, generate a key pair locally or in the Customer Portal, add the public key to the account, and select the key on the Bare Metal creation form. Choose one of the following ways to make an SSH key available when creating the server:Generate SSH keys locally
Generate a key pair usingssh-keygen on Windows 10 and later, Linux, and macOS, or with PuTTYgen on older Windows versions. Copy the contents of the resulting .pub file — this is the public key to add to the account.
Generate an SSH key in the Customer Portal
To generate a key pair directly in the portal:- In the Gcore Customer Portal, navigate to Cloud > SSH Keys.
- Click Autogenerate SSH Key.

- Enter a key name and click Create SSH Key. The public key is stored in the account and the private key file downloads to local storage.

Key names can contain only Latin characters, underscores, spaces, and dots. The length must be between 3 and 63 characters.
Add a public SSH key to the Customer Portal
If the key was generated outside the portal, add the public key manually:- In the Customer Portal, navigate to Cloud > SSH Keys.
- Click Add SSH Key.
- In the SSH key content field, paste the public key.
- Enter a key name and click Add SSH Key.

Delete an SSH key
To remove a key from the account:- In the Customer Portal, navigate to Cloud > SSH Keys.
- Find the key in the list and click the three-dot icon in the row.
- Click Delete.
- In the confirmation dialog, click Delete SSH key.
Generate an SSH key during creation
On the Bare Metal creation form, the SSH Keys section offers a dropdown to select an existing key and links to add or generate a new key:- Select SSH key — attach a key already stored in the Customer Portal.
- Add a new SSH key — paste a public key generated locally.
- Generate an SSH key — create a new key pair in the portal.
- Click Generate an SSH key.
- Enter the key name and click Create SSH Key. The private key file downloads to local storage and the key is attached to the server.

Connect with a password
To enable password authentication, set the password in acloud-init script during Bare Metal creation:
- In the Customer Portal, navigate to Cloud > Bare Metal and click Create Bare Metal.
-
In Additional options, select the User data checkbox. A text area appears for the
cloud-initscript.

- Paste a script that sets the password and enables SSH password authentication:
your-password with the desired password. The same password allows SSH login or console access.
Instead of a plain-text password, a hashed password value can be used in the
password field. Generate the hash with a trusted tool before adding it to the script.Connect via SSH
After the Bare Metal server is active, connect from a local SSH client using the server IP address, login name, and either the private key or the configured password. The login name and IP address appear on the server Overview tab next to Access to Console in theusername@ip-address format.

If the server has only a private network interface, a floating IP address is required for SSH access.
Connect from Windows 7 or 8
Windows 7 and 8 do not include a built-in OpenSSH client. Use PuTTY instead:- Download and launch PuTTY.
- In the Session section, enter the server IP address in Host Name (or IP address).
-
Set Port to
22and Connection type to SSH. -
(Key-based authentication only) Go to Connection > SSH > Auth and click Browse to select the private key in
.ppkformat.
If the private key is in
.pem format, convert it to .ppk using PEM to PPK.- Click Open.
- When prompted for login as, enter the username shown on the server overview tab.
- (Key-based authentication only) Enter the key passphrase if one was set during key generation.
Connect from Windows 10, Linux, or macOS
- Windows 10 or 11
- Linux or macOS
Windows 10 and later include OpenSSH Client, which may need to be enabled first:
- Open Settings > Apps > Optional features.
- Find OpenSSH Client and click Install if it is not already installed.
- Restart the computer after installation.
- Open Command Prompt and run one of the commands below.
username with the login from the server overview tab, server-ip with the public or floating IP address, and /path/to/private-key with the path to the private key file in PEM format.
When connecting for the first time, the client asks to verify the host fingerprint. Type yes and press Enter.
For password authentication, enter the password configured in the cloud-init script when prompted.