VPS Malaysia Blog

General

How to Connect to Your VPS via SSH (Windows & Mac)

SSH is the secure way to access and manage a Linux VPS from Windows or Mac. The essential pieces are the server IP, username, authentication method, terminal client and firewall access.

3D Windows and Mac client devices connecting to Linux VPS through encrypted SSH tunnel and key gateway
22Default SSH port to verify in firewall rules
KeysSSH keys are safer than password-only access
RootLimit or disable direct root login when possible

SSH Access Guide

What this guide covers.

3D Windows and Mac client devices connecting to Linux VPS through encrypted SSH tunnel and key gatewaySecure Remote Access

SSH is the secure way to access and manage a Linux VPS from Windows or Mac. The essential pieces are the server IP, username, authentication method, terminal client and firewall access.

Windows users can connect with PowerShell, Windows Terminal or PuTTY, while Mac users can use Terminal directly.

Key-based authentication, named sudo users and restricted SSH access improve server security.

Connection issues usually come from wrong IP, wrong username, blocked port, missing key or firewall configuration.

Redesigned Guide

Visual decision path.

Connection Details

Before connecting, collect the VPS IP address, SSH username, password or private key and the SSH port.

VPS IP addressUsernamePassword or private keySSH portProvider control panel access

Windows Access

Modern Windows can use built-in SSH from PowerShell or Windows Terminal. PuTTY remains an option for users who prefer a dedicated client.

Open PowerShellRun ssh user@server-ipAccept host fingerprintEnter password or use keyUse PuTTY for PPK workflows

Mac Access

macOS includes SSH in Terminal, so connecting is usually a single command once credentials are ready.

Open TerminalRun ssh user@server-ipUse private key with -iVerify host fingerprintExit safely when finished

Hardening Steps

After the first login, reduce risk by moving away from weak password-only administration.

Create sudo userAdd SSH keyDisable root login when readyAllow only needed portsKeep recovery access available

Quick Reference

SSH Connection Table

Windows

Use PowerShell, Windows Terminal or PuTTY to run SSH connections.

Mac

Use Terminal with the built-in ssh command.

Credentials

Confirm IP, username, port and password or private key.

Firewall

Allow SSH access on the configured port before locking rules down.

Security

Prefer SSH keys, named sudo users and restricted admin access.

Troubleshooting

Check IP, username, key permissions, firewall and provider status first.

SSH access is the control line for a Linux VPS. Set it up carefully, secure it early and document the connection details before production work begins.

Explore VPS Malaysia Services