SSH explained in plain terms means a secure way to log in to another computer over a network and control it as though you were sitting in front of it. The central question is how you can trust a connection that crosses the public internet, and the short answer is that SSH encrypts everything, checks the identity of the machine you connect to, and proves who you are before it lets you in.
System administrators use it every day. A developer logs in to a server in a data centre, a website owner restarts a service on a machine hundreds of miles away, and an engineer copies files between computers, all through SSH. It has been the standard tool for remote access for nearly thirty years, and it still underpins most of the internet’s infrastructure.
It was created in 1995 by Tatu Ylönen, a researcher at Helsinki University of Technology, after a password-sniffing attack on his university network. The older tools of the time sent passwords in plain text, so anyone listening on the network could steal them. Ylönen wrote a replacement that encrypted the whole session, and it spread quickly because the problem it solved was universal.
Key takeaways
- SSH is the standard way to log in to a remote computer securely over a network.
- It encrypts the whole session, so passwords and commands cannot be read in transit.
- Keys replace passwords for most serious use, and they are far harder to steal or guess.
- The same connection can carry files, forward ports, and run commands on the remote machine.
- Most breaches come from weak configuration, not from a flaw in the protocol itself.
What SSH is
SSH, short for Secure Shell, is a network protocol that gives you a secure channel between two computers over an unsecured network. It provides a shell, a text-based command line, on the remote machine, and it can also carry files and forward other network traffic. The current version, SSH-2, is defined by a set of open standards, and the most common implementation, OpenSSH, is free and open source.
The name is literal. A shell is the program that takes your typed commands and runs them, and SSH makes that shell secure. When you connect, your keystrokes travel encrypted to the remote machine, and its replies travel encrypted back to you. Anyone watching the network sees only scrambled data, not your commands, your files, or your password.
SSH is also a toolkit, not just a login method. The same protocol moves files, through the secure copy and secure file transfer tools, and it can forward a port, letting a program on your computer reach a service on the remote machine as though it were local. These extra uses are why administrators reach for SSH for almost every remote job, not only for logging in. Our guide to cryptography explains the encryption and key exchange mathematics that make a session like this possible.
It replaced a family of older tools, including Telnet and the remote shell utilities, that sent everything, including passwords, in plain text. Those tools still exist, but no serious system uses them across a network any more. SSH did not add a feature to remote access; it made remote access safe to use at all.
How SSH works
A connection begins with a handshake. Your computer, the client, contacts the server and the two agree on which encryption methods to use. The server then presents its host key, a long-term identity, and your client checks it against the record it keeps from previous connections, warning you loudly if it has changed, because a changed key can mean someone is intercepting the connection.
Next comes authentication, the step where you prove who you are. The common methods are a password and a public key, and the key is the stronger of the two. Your computer holds a private key that never leaves your machine, and the server holds the matching public key. The server sends a challenge that only the private key can answer, so you are proved without the secret ever travelling across the network.
Once you are authenticated, the two sides agree on a session key, a short-lived secret used to encrypt everything that follows. This uses a key exchange, a piece of mathematics that lets two strangers agree on a secret even while someone listens to every message. From this point on, every keystroke and every reply is encrypted, and each message is checked for tampering before it is accepted.
The encrypted channel then carries your session. You type a command, it is encrypted, sent, decrypted on the server, and run, and the output comes back the same way. File transfers and port forwarding ride inside the same encrypted tunnel, which is why they need no separate protection. When you log out, the session key is discarded, so a recording of the traffic cannot be decrypted later. Our guide to SSL certificates explains how the same ideas about keys and trust protect websites, and where the two systems differ.

Comparing SSH with Telnet
| Aspect | SSH | Telnet |
|---|---|---|
| Encryption | Everything encrypted | Nothing encrypted |
| Authentication | Passwords and keys | Passwords in plain text |
| Data safety | Commands and files hidden | Everything readable on the network |
| Extra features | File transfer and port forwarding | Remote shell only |
| Safe to use today | Yes, the standard choice | No, only on trusted private networks |
Where SSH is used
Servers are its home territory. Almost every Linux and Unix server in the world is administered over SSH, and cloud providers give you SSH access to a new machine within minutes of creating it. When a website goes down at midnight, the engineer who fixes it is almost certainly typing into an SSH session.
Developers use it to move code. Version control systems commonly fetch and send code over SSH, which is why a developer’s key is often the first credential set up on a new laptop. Automated systems use it too, with dedicated keys that let a deployment script or a backup job log in without a human typing a password.
It also secures tools that never show a command line. File transfers, database administration, and remote backups often travel inside an SSH tunnel, and a technique called port forwarding lets a local program reach a database that only listens on a private network. The user sees a normal application; SSH is the invisible tunnel underneath.
Even Windows, long a stranger to SSH, now ships an OpenSSH client and server. The protocol has become the common language of remote access across every major operating system, which is why a skill learned on one platform transfers directly to another.
Strengths and limits
Its greatest strength is maturity. SSH has been attacked, studied, and improved for nearly thirty years, and the protocol has survived that scrutiny. The encryption is strong, the design is conservative, and the implementations are maintained by people who treat security as the whole point.
It is also flexible. One protocol covers login, file transfer, and tunnelling, so an administrator learns one tool and one set of keys rather than a different system for each job. Keys can be shared, revoked, and limited to a single command, which makes it possible to give an automated job exactly the access it needs and nothing more.
The limits are mostly human. SSH cannot protect a key that is left unprotected on a shared computer, and it cannot help if an administrator allows weak passwords or leaves the service open to the whole internet without limits. Most successful attacks on SSH are not breaks in the mathematics but guesses at a password, repeated millions of times by automated bots.
It is also a text tool at heart. SSH gives you a command line, not a graphical desktop, and tasks that need a mouse or a picture are awkward through it. Graphical forwarding exists, but it is slow and clumsy, so most people pair SSH with other tools when they need to see rather than type.
SSH checklist
- Use key authentication, and disable password login on any server facing the internet.
- Protect your private key with a strong passphrase, and never share the private half.
- Check a server’s host key carefully the first time you connect to it.
- Keep SSH software updated, since old versions can carry known flaws.
- Change the default port only as a minor extra step, never as your only defence.
- Limit logins to the accounts and addresses that genuinely need them.
- Use a firewall to block SSH from the open internet wherever possible.
- Turn on two-factor authentication for accounts that allow it.
- Review your authorised keys regularly, and remove ones you no longer use.
Frequently asked questions
What is SSH?
SSH, or Secure Shell, is a protocol that lets you log in to a remote computer securely over a network. It encrypts the whole session, checks the server’s identity, and can also transfer files and forward other traffic.
What is the difference between SSH and Telnet?
Telnet sends everything, including passwords, in plain text, so anyone on the network can read it. SSH encrypts the entire session and verifies both sides, which is why Telnet has no place on a modern network.
What is an SSH key?
An SSH key is a pair of mathematically linked files, a public key kept on the server and a private key kept on your computer. The private key proves your identity without ever travelling across the network, which makes it far stronger than a password.
Is SSH secure?
Yes, when it is configured properly. The protocol itself is strong and well tested, but it cannot protect a weak password, an unprotected key, or a server left open to the whole internet without limits.
What port does SSH use?
SSH uses port 22 by default. Many administrators move it to another port to reduce the noise from automated guessing, but that is only a small extra step, not a substitute for keys and a firewall.
Can I use SSH on Windows?
Yes, modern Windows includes an OpenSSH client, so you can connect from a command prompt or PowerShell. Windows Server also includes an OpenSSH server, letting you administer Windows machines the same way.
The bottom line
SSH explained in one line is this: it is an encrypted tunnel that lets you log in to a distant computer, run commands, and move files, while proving the identity of both sides and hiding everything from listeners.
It is the quiet infrastructure behind most of the internet. Use keys, protect them well, and keep the service locked down, and remote access becomes one of the safest things you do, not one of the riskiest.
This article is general information about how SSH works, not advice about which technology suits a particular project.







