Recommended SSH connection method
SSH key authentication is the recommended way to connect to Bare Metal servers because it is more secure than password authentication. To set up SSH key authentication:- Generate an SSH key pair, or use an existing one.
- Add the public key to the Customer Portal.
- Select the key on the Bare Metal creation form.
Add multiple SSH keys to a resource
To allow multiple users or devices to access the same server, add several SSH keys through the Gcore Customer Portal on the Bare Metal creation form. In the SSH key section, select multiple keys from the saved keys list. Additional public keys can be added to the Customer Portal at any time.Cannot log in as root. Permission denied error
Gcore images disable root SSH login by default for security. The default username depends on the operating system. When creating a server, the portal displays the correct username in the formatssh [username]@ipaddress.
| Operating system | Default username |
|---|---|
| Ubuntu | ubuntu |
| Debian | debian |
| Fedora | fedora |
| CentOS | cloud-user |
| Fedora-CoreOS | core |
| Windows | Admin (RDP only) |
[login]@[ip-of-the-server].
After connecting with the default user, switch to root:
Custom images may use different default usernames or allow root login. Check with the image provider for specific access credentials.
No password received via email
Gcore does not send server credentials via email. By default, Bare Metal servers accept SSH key authentication only. To configure password access for the portal console or SSH, set a password during server creation:- Linux servers — add a cloud-init password script in the User data field.
- Windows servers — enter the password in the access section of the creation form.
Lost SSH key and cannot connect
If the private SSH key is lost:-
If a password was configured during server creation: Access the server via the portal console and add a new public key to
~/.ssh/authorized_keys. - If no password was configured: Reinstall the server with a new SSH key.
Incorrectly added SSH key. Errors: Connection refused
PuTTY and OpenSSH use different public key formats. A key inBEGIN SSH2 PUBLIC KEY format does not work — the key must start with ssh-rsa AAAA... or another OpenSSH prefix.
When generating a key with PuTTYgen, copy the OpenSSH format from the Public key for pasting into OpenSSH authorized_keys file field.