Access your VPS using SSH from any operating system
SSH (Secure Shell) is the primary method for connecting to and managing your Linux VPS. This guide covers SSH access for all major operating systems.
PuTTY is the most popular SSH client for Windows. It's free, lightweight, and easy to use.
Download PuTTY from the official website: putty download page
Connecting with PuTTY:
22rootTip: Save Your Session
In PuTTY, after entering your IP, type a name under "Saved Sessions" and click Save. This lets you quickly connect in the future without re-entering details.
Windows 10 and 11 include a built-in SSH client. You can use it through PowerShell, Command Prompt, or Windows Terminal.
ssh root@your-vps-ipLinux comes with an SSH client pre-installed. Simply open your terminal and use the ssh command.
Basic Connection:
ssh root@your-vps-ipSpecify a Different Port:
ssh root@your-vps-ip -p 2222Using SSH Keys:
# Generate SSH key pair (if you don't have one)
ssh-keygen -t ed25519 -C "your_email@example.com"
# Copy public key to server
ssh-copy-id root@your-vps-ip
# Connect (no password needed)
ssh root@your-vps-ipmacOS includes a built-in SSH client. Open Terminal (found in Applications → Utilities) and use the same commands as Linux.
ssh root@your-vps-ipYour VPS connection details can be found in:
For security, change the default root password immediately:
passwd# Debian/Ubuntu
apt update && apt upgrade -y
# CentOS/RHEL/Rocky
yum update -y
# Fedora
dnf update -y# Create new user
adduser yourusername
# Add to sudo group (Debian/Ubuntu)
usermod -aG sudo yourusername
# Add to wheel group (CentOS/RHEL)
usermod -aG wheel yourusername
# Switch to new user
su - yourusernameSSH keys are much more secure than passwords. See our SSH Key guide for setup instructions.
# Edit SSH config
nano /etc/ssh/sshd_config
# Change Port 22 to another port (e.g., 2222)
# Save and restart SSH
systemctl restart sshdAfter setting up a regular user with sudo access:
# Edit SSH config
nano /etc/ssh/sshd_config
# Set: PermitRootLogin no
# Save and restart
systemctl restart sshd# Install fail2ban
apt install fail2ban # Debian/Ubuntu
yum install fail2ban # CentOS/RHEL
# Enable and start
systemctl enable fail2ban
systemctl start fail2banroot)This occurs when the server's SSH key has changed (e.g., after OS reinstall):
# Remove old key (replace with your VPS IP)
ssh-keygen -R your-vps-ipCan't Connect at All?
If you can't connect via SSH, use the VNC console in SolusVM to access your VPS and troubleshoot. Check if the SSH service is running with systemctl status sshd.
If SSH isn't working, you can always access your VPS through the VNC console in SolusVM:
See our VNC Access guide for more details.
Need further assistance? Contact our support team.