To connect to an izCloud server over SSH, you need a firewall rule that allows 22/TCP traffic. If the server is on a private network, you map the public IP to the server with Virtual IPs (DNAT).
Before you start
- A Linux server whose installation is complete and that is on. In the example, the server name is web-01 and the public IP address is 203.0.113.10.
- The root password. The password is sent to the account owner's email address and is not shown in the panel.
- A firewall rule that allows 22/TCP access. We explain the rule in the first section of this guide.
- An SSH client on your computer: Windows Terminal or PowerShell, a macOS or Linux terminal, or PuTTY.
Which firewall permission does SSH need?
SSH connects to TCP port 22 on the server. To reach the server over SSH from its public IP address, the firewall must have a rule that allows 22/TCP traffic. You add the rule on the Firewall Rules page with the ACCEPT action.
You can see your public IP address in the Assigned IP Addresses table on the Infrastructure → Network page. If your server has a private address such as 10.1.0.10, you map the public IP to this address with Infrastructure → Firewall → Virtual IPs (DNAT). We explain the rule wizard in the how to add a firewall rule guide and the mapping in the DNAT port forwarding guide.
Do not open port 22 to the whole internet. Limit the source of the rule to your own IP address.
- Open Infrastructure → Firewall → Addresses.
- Create an address object of type Single IP for your own IP address.
- Open Infrastructure → Firewall → Firewall Policy and click the New Rule button.
- In the General step, choose ACCEPT as the Action, WAN as the Incoming Interface (From) and your network as the Outgoing Interface (To).
- In the Source and Destination step, choose the address object you just created as the source and the server's address as the destination.
- In the Services and Applications step, choose SSH or custom TCP port 22.
- Click the Save button.
How do you connect over SSH from a Windows, macOS or Linux terminal?
Windows 10 and 11, macOS and Linux come with an SSH client. You can connect from the terminal without installing anything. The username is root and the address is the server's public IP.
On the first connection, the client asks about the server's fingerprint. This is normal. Answer yes, so the server is added to your known hosts list.
- Open Windows Terminal or PowerShell on Windows, or the Terminal app on macOS and Linux.
- Type the command below and press Enter.
- Type yes at the fingerprint question and press Enter.
- Type the root password from your email and press Enter.
ssh root@203.0.113.10
How do you connect over SSH with PuTTY?
PuTTY is a free SSH client for Windows. You connect from a window instead of typing a command.
- Open PuTTY.
- Type 203.0.113.10 in the Host Name field.
- Leave Port as 22 and Connection type as SSH.
- Click the Open button.
- Click Accept in the PuTTY Security Alert window.
- At the login as prompt, type root and enter the password from your email.
How do you create an SSH key and add it to the server?
An SSH key is more secure than a password because it cannot be guessed and is not sent over the network. A key pair has two files: the private key stays on your computer, and the public key is added to the server.
The ed25519 type is short and secure. The command asks you for a passphrase. We recommend setting one.
- In your computer's terminal, run the key generation command.
- At the file location question, press Enter to accept the default location.
- To add the key to the server on macOS and Linux, run the ssh-copy-id command.
- When it asks for a password, type the root password.
- Test the passwordless connection with the ssh root@203.0.113.10 command.
ssh-keygen -t ed25519 -C "web-01"
ssh-copy-id root@203.0.113.10
How do you know it worked?
If the connection succeeds, you land at the server's command line.
- A prompt like root@web-01 appears in the terminal.
- The hostname command returns the server name.
- After the key setup, login opens without asking for a password.
hostname
whoami
Common problems
The errors you may see on an SSH connection, and how to fix them, are below.
| Error in the terminal | What to do |
|---|---|
| Connection timed out | The firewall is not passing 22/TCP traffic, or your source IP has changed. Check the rule and the DNAT mapping. |
| Connection refused | The packet reaches the server but the SSH service is not running. Check the service from the web console with systemctl status ssh. |
| Permission denied | The password is wrong, or the server does not allow root login with a password. Renew the password with Reset Password. |
| WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! | The fingerprint changes if the server was reinstalled. Remove the old entry with ssh-keygen -R 203.0.113.10 and connect again. |
Frequently asked questions
Where do I get the SSH password?
The password is sent to the account owner's email address and is not shown in the panel. If you lost it, you can send a new one to the same address with the Reset Password action.
Should I open port 22 to everyone?
No. Limit the rule source to your own IP address, or give access over a VPN. An open SSH port quickly receives password-guessing attacks.
Is an SSH key more secure than a password?
Yes. A key cannot be guessed and does not travel over the network. If you protect the private key with a passphrase, it is useless on its own even if your computer is stolen.
Do I need to install PuTTY to use SSH on Windows?
No. On Windows 10 and 11, the ssh command in PowerShell works. PuTTY is only for people who prefer a window interface.
How else can I reach the server if I cannot connect?
You can open the server's screen in the browser with Open Console in the panel. The console works independently of the network.