A computer running Windows 11
Hannah Stryker / How-To Geek

To hook up with an SSH server on Home windows, set up the non-obligatory SSH function after which run “ssh person@exampleIP” in PowerShell or the Home windows Terminal. On Linux or macOS, open the Terminal and run “ssh person@exampleIP”.

An SSH shopper lets you connect with a distant pc operating an SSH server. The Safe Shell (SSH) protocol is usually used for distant terminal connections, permitting you to entry a text-mode terminal on a distant pc as if you happen to had been sitting of it. It can be used for SSH tunnelingSCP file transfers, and other things.

The best way to SSH Right into a Laptop on Home windows

Home windows 10 and Home windows 11 now have an official SSH client you can install. It’s a part of Home windows 10 and Home windows 11 however is an “non-obligatory function.”

To put in the OpenSSH Shopper on Home windows 10 or Home windows 11, open the Settings app, then navigate to Apps > Apps & Options > Non-obligatory Options.  Click on “Add a Characteristic,” then scroll by way of the non-obligatory options till you find “OpenSSH Shopper.” Tick the field, then click on “Set up.”

After it’s put in, open PowerShell, then use the SSH command to hook up with a server. For instance:

The SSH command running in PowerShell on Windows.

If you’d like one thing with a graphical person interface (GUI) and extra flexibility, check out PuTTY as an alternative.

RELATED: 5 Cool Things You Can Do With an SSH Server

Download PuTTY and launch it to get began. You possibly can obtain both an installer that included PuTTY and associated utilities. or a putty.exe file that may operate as a portable application.

Sort the host title or IP tackle of the SSH server into the “Host title (or IP tackle)” field. Make sure the port quantity within the “Port” field matches the port quantity the SSH server requires. SSH servers use port 22 by default, however servers are sometimes configured to make use of different port numbers as an alternative. Click on “Open” to attach.

PuTTY is a fully featured SSH prograam that enables SSH on Windows. It can be customized extensively.

You’ll see a safety alert the primary time you attempt to hook up with a server. This tells you that you just haven’t beforehand linked to this server. That’s anticipated, so click on “OK” to proceed.

Should you see this warning sooner or later after already having linked to the server as soon as, that signifies the server’s encryption key fingerprint is completely different. Both the server administrator has modified it or somebody is intercepting your site visitors and making an attempt to trick you into connecting to a malicious, imposter SSH server. Watch out!

You’ll be prompted to enter the username and password to your account on the SSH server. After you do, you’ll be linked. Simply shut the window to finish the SSH connection.

PuTTY connected to the "geek" user on the localhost server.

There’s much more you are able to do with PuTTY. For instance, if it’s essential use a non-public key file to authenticate with the SSH server, you’ll discover this selection at Connection > SSH > Auth within the PuTTY Configuration window that seems while you launch the appliance. Seek the advice of PuTTY’s manual for extra info. Right here’s a enjoyable truth: SSH private keys are technically called PEM files.

RELATED: How to Manage an SSH Config File in Windows and Linux

The best way to Use SSH on macOS or Linux

UNIX-based working programs like macOS and Linux embody a built-in SSH command that works just about the identical in all places.

RELATED: How to Install and Use the Linux Bash Shell on Windows 10

To hook up with an SSH server from one among these working programs, first open a Terminal window. On a Mac, you’ll discover this at Finder > Purposes > Utilities > Terminal. On a Linux desktop, search for a Terminal shortcut within the functions menu.

Terminal displayed in Finder > Applications on macOS Ventura.

To hook up with an SSH server, sort the next command into the terminal, changing username together with your username on the SSH server and ssh.server.com with the host title or IP tackle of the SSH server:

ssh [email protected]

This command will connect with the SSH server on port 22, which is the default. To specify a unique port, add -p to the top of the command adopted by the port quantity you wish to join on, like so:

ssh [email protected] -p 2222

An example SSH command run on macOS.

You’ll see a message asking you to substantiate the id of the server the primary time you join. If that is truly the primary time you have got linked to the server, the message is regular and you’ll sort “sure” to proceed.

The first-time warning about connecting to a SSH server.

Should you’ve beforehand linked to the server and see this message, this means the server administrator has modified the important thing fingerprint otherwise you’re being tricked into connecting to an imposter server. Watch out!

RELATED: The Best Ways to Secure Your SSH Server

You’ll by prompted to sort the password the person account requires on the SSH server earlier than persevering with. After getting, you’ll be linked. Shut the window or sort “exit” and press Enter to finish the SSH connection.

The warning you will see if a server's identification has changed since the last time you connected. Proceed with caution unless you know why the change has occurred.

You’ll discover extra info on utilizing the ssh command within the SSH handbook web page. You can entry it by typing man ssh on the terminal, or by viewing it in your web browser. Should you’re operating your individual SSH Server, make sure you lock it down to enhance your safety.

RELATED: 5 Cool Things You Can Do With an SSH Server


Source link