← Help center · VPS and servers
How to connect to a Linux VPS from Mac or Linux with SSH
Mac and Linux already include an SSH client. No extra program is needed.
Steps
- Open Terminal.
- Type this, using your own IP:
ssh root@203.0.113.10
- The first time, type
yesto trust the server. - Enter your password and press Enter. The password is hidden while you type.
Use a different port
If your server uses another SSH port, add -p:
ssh -p 2222 root@203.0.113.10
Windows users: see connect with PuTTY. Safer logins: use SSH keys.
More in VPS and servers
- How to connect to your Linux VPS with PuTTY (Windows)
- Where to find your server IP address and password
- How to change your root password on Linux
- First steps on a new Linux VPS: a security checklist
- How to set up a firewall on Ubuntu with UFW
Still stuck? Open a support ticket.