Connect to a Linux server (SSH)
Download your key file and connect from a Mac or Windows computer in five short steps.
You use a Linux server by typing commands in a window called a terminal. Instead of a password, your server checks a private key file that only you have. It works like a house key.
Before you start: allow your computer on the Who can connect tab. Until then, the server does not answer.
Connect in five steps
-
Download your key file. Open Servers, choose your server, open the Connect tab and press Download key file. Keep this file private and never send it to anyone.
-
Open a terminal.
- On a Mac: open Terminal (search for it with Spotlight, the magnifying glass at the top right).
- On Windows: open PowerShell from the Start menu.
-
Go to your Downloads folder. Type
cd Downloadsand press Enter. -
Copy the two lines shown on the Connect tab, paste them in the terminal and press Enter. They look like this, with your own server number, user name and address:
chmod 600 starcloud-server-123.pem ssh -i starcloud-server-123.pem [email protected]On Windows, you can skip the first line.
-
The first time, it asks if you trust the server. Type
yesand press Enter. You are in.
To leave, type exit and press Enter.
If it does not work
- Nothing happens, then "Connection timed out". Your computer is not on the guest list, or your internet address changed. Open Who can connect, press Allow this computer and Save. Also check that the server is running on the Turn on & off tab.
- "Permission denied (publickey)". The terminal is not looking at your key file. Make sure you typed
cd Downloadsfirst and that the file name matches the one you downloaded. If you downloaded it twice, your browser may have renamed it, for examplestarcloud-server-123 (1).pem. - "Unprotected private key file" (Mac). Run the first line,
chmod 600 ..., then try the second line again.