TürkiyeVPS

What Is SSH? Connecting to Your Server and Basic Linux Commands

SSH is the standard way to manage a server remotely and securely. We show you how to connect from Windows, macOS and Linux, how to create an SSH key, and the commands you'll need on day one.

3 min read

SSH (Secure Shell) is a protocol that lets you send commands from one computer to another, usually a server, over an encrypted connection. When you rent a VPS, SSH is the most common way to manage it. Once you connect, you'll see your server's command line (terminal), and every command you type runs on the server.

What is root access?

In Linux, root is the administrator user who can do anything: install software, change settings, delete files. Having root access on a VPS means the server is fully under your control. That's a lot of power, so use it carefully.

How to connect with SSH

To connect, you need three things: the server's IP address, a username (usually root), and a password or SSH key.

Windows 10 and 11

Windows comes with a built-in SSH client. Open PowerShell or Command Prompt from the Start menu and type:

ssh [email protected]

The first time you connect, you'll be asked whether you trust this server; type yes and press Enter. Then enter your password. No characters appear on screen while you type the password; that's normal.

macOS and Linux

Open the Terminal app and use the same command:

ssh [email protected]

Connecting from your browser

The Console (Terminal) button in the TürkiyeVPS customer panel opens your server's terminal directly in your browser, with no software to install. It's the easiest option for beginners.

Safer logins with an SSH key

Using an SSH key instead of a password is both more secure and more convenient. A key has two parts: a private key that stays on your computer and a public key that you put on the server.

  1. Create a key pair on your own computer:
ssh-keygen -t ed25519
  1. Copy your public key to the server (macOS/Linux):
ssh-copy-id [email protected]

On Windows, you can add the contents of the C:\Users\USERNAME\.ssh\id_ed25519.pub file to the ~/.ssh/authorized_keys file on the server.

  1. From now on, you'll connect without being asked for a password. Never share your private key file with anyone.

Linux commands you'll use on day one

Command What does it do?
pwd Shows which folder you're in
ls -la Lists the files in a folder
cd /var/www Changes folders
nano file.txt Opens a file in a simple editor
apt update && apt upgrade (Ubuntu/Debian) Updates packages
df -h Shows disk usage
free -m Shows RAM usage
htop or top Shows running processes and load
systemctl status nginx Shows the status of a service
exit Closes the connection

Warning: The rm -rf command deletes files permanently, without sending them to a trash or recycle bin. Don't use it unless you're sure of what you're doing.

Frequently Asked Questions

Why am I getting a "Connection refused" error when connecting via SSH?

The server may be turned off, the SSH service may not be running, or a firewall may be blocking port 22. First, check in your panel that your server is running.

I forgot my SSH password. What should I do?

You can reset your password from your customer panel, or log in to your server through console access and set a new password. If needed, open a support ticket.

Should I change the SSH port?

It's not required, but it reduces login attempts from automated scanning bots. Your real protection comes from SSH keys and a strong password.

How do I transfer files over SSH?

You can use the scp command or programs that support SFTP, such as FileZilla or WinSCP.