How to connect to your VPS or server via SSH (PuTTY, Windows Terminal and Mac)
This guide shows you how to connect to your VPS via SSH from Windows (Windows Terminal or PuTTY), macOS or Linux. SSH (Secure Shell) gives you an encrypted command line on your server, and it is the first thing you need to manage a VPS or dedicated server from EgWeb.
What you need before you start
- The server IP address (from your welcome email or the client area).
- The SSH port. The default is
22; if you or our team changed it, use the new port. - The username (usually
rooton a new server) and its password, or an SSH key.
Option 1: Windows Terminal or PowerShell (Windows 10 and 11)
Modern Windows already includes an SSH client, so you do not need to install anything.
- Open Windows Terminal or PowerShell from the Start menu.
- Type the command below, replacing the IP address (and the port if it is not 22):
ssh root@203.0.113.10 ssh -p 2222 root@203.0.113.10 - The first time, you will be asked to confirm the server fingerprint. Type
yesand press Enter. - Type your password and press Enter. Nothing appears while you type; this is normal.
Option 2: PuTTY (any Windows version)
- Download PuTTY from its official site and open it.
- In Host Name (or IP address) type the server IP. In Port type the SSH port. Keep Connection type on SSH.
- Optional: type a name under Saved Sessions and click Save so you can reconnect with one click.
- Click Open, accept the security alert the first time, then log in as
rootwith your password.
Tip: in PuTTY, selecting text copies it, and a right-click pastes.
Option 3: macOS and Linux
- Open the Terminal app.
- Run the same command as on Windows:
ssh root@your-server-ip(add-p PORTif needed). - Accept the fingerprint and enter your password.
Log in with an SSH key (recommended)
Keys are safer than passwords and save you typing. On your own computer:
- Create a key pair (press Enter to accept the default location, and set a passphrase):
ssh-keygen -t ed25519 - Copy the public key to the server. On macOS/Linux:
On Windows, open the filessh-copy-id root@203.0.113.10%USERPROFILE%\.ssh\id_ed25519.pub, copy its single line, and add it on the server to the end of~/.ssh/authorized_keys. - Connect again with
ssh root@203.0.113.10. You should log in without the server password.
PuTTY uses its own key format (.ppk). Use PuTTYgen to load or generate a key, then select it under Connection > SSH > Auth > Credentials.
Common problems
- Connection timed out: wrong IP or port, or a firewall is blocking your IP. If the firewall blocked you after failed logins, contact us to unblock it.
- Connection refused: the SSH service is not running on that port. Check that you are using the right port.
- Permission denied: wrong username or password, or password login is disabled and you must use your key.
- REMOTE HOST IDENTIFICATION HAS CHANGED: this appears after a server reinstall. If you know the server was rebuilt, remove the old entry with
ssh-keygen -R 203.0.113.10. If you did not expect a change, stop and contact support.
After your first login, follow First steps after you receive your VPS and How to secure your Linux server.
Frequently asked questions
Can I use SSH on shared hosting?
SSH is mainly for VPS and dedicated servers. On shared hosting plans, ask support whether shell access can be enabled for your account.
Why can't I see my password when I type it?
Linux hides password input completely for security. Type it carefully and press Enter.
Is it safe to log in as root?
It works, but it is safer to use SSH keys and limit root logins. See our guide on changing the SSH port and disabling root password login.