October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Cupertino desk4 min

How to Connect to an SSH Server from Android, Windows, macOS, and Linux

Connect to an SSH server from a phone or computer with the right client, account, server address, and authentication method.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To connect to an SSH server, open an SSH client on your device and run ssh username@hostname, replacing the placeholders with the account and server address provided by the administrator. The server must be running an SSH service, reachable over the network, and configured to accept your password or key. The client and server are the two ends of the connection, as described in Microsoft’s OpenSSH overview.

Before you connect

Ask the server administrator for the connection details and confirm that your account is authorized. You will generally need:

As an Amazon Associate I earn from qualifying purchases.

  • The server’s hostname or IP address.
  • Your SSH username.
  • The port, if the server does not use the client’s default.
  • An authentication method the server accepts, such as a password or private key.
  • Confirmation that the SSH service is running and the network permits access.

These are general connection prerequisites; Microsoft lists a running server, client, IP address, and authentication among the requirements in its Factory OS connection guide. Its example address and credentials are specific to that environment, not values to copy for another server.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Connect from Windows

Windows OpenSSH includes the ssh client. Open PowerShell, Command Prompt, or Windows Terminal and enter:

#1 Best Overall
Yubico - Security Key C NFC - Basic Compatibility - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key C NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key C NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key C NFC via USB-C and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
ssh username@hostname

Replace username with your server account and hostname with the address you were given. Microsoft documents OpenSSH as a Windows feature, but whether the client is installed by default depends on the Windows release. OpenSSH is available as a Feature on Demand starting with Windows 10 build 1809 and Windows Server 2019; check your system’s optional features if the ssh command is not recognized. See Microsoft’s Windows OpenSSH overview.

Windows OpenSSH also includes tools such as ssh-keygen, ssh-agent, ssh-add, sftp, and scp. The sshd command is the server component; it is not needed merely to connect outbound to another machine.

Connect from macOS

Open Terminal or another terminal application and use the same command:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Yubico - YubiKey 5C NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5C NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5C NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5C NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts
ssh username@hostname

Using a Mac as an SSH client is different from enabling Remote Login on a Mac. Remote Login is a server-side setting that allows other devices to connect into that Mac; it is not a prerequisite for the Mac to initiate an SSH connection to another server.

Connect from Linux

Open a terminal and run:

ssh username@hostname

If the command is unavailable on Ubuntu, install the client with:

sudo apt install openssh-client

This package command is the Ubuntu example documented by Microsoft’s PowerShell SSH remoting guide. Other Linux distributions may use different package managers or package names; follow the instructions for your distribution and release.

Rank #3
Yubico - YubiKey 5 NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-A or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5 NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts

Connect from Android

Android requires an SSH client app rather than the desktop terminal workflow described above. Choose an app that supports the authentication method your server requires, lets you verify server host keys, and receives maintenance through a distribution source you trust. On a phone, also consider whether the app’s terminal interface and connection-profile management are practical for repeated use.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

App availability, setup steps, and key-import behavior vary by client. The available documentation does not establish a single current Android app recommendation, so check the app’s own documentation for how to create a connection and authenticate before entering server credentials.

Use a private key or a non-default port

Specify a private key

If the server accepts public-key authentication and you have the matching private key on your device, specify that key with -i:

Rank #4
Yubico - Security Key NFC - Basic Compatibility - Multi-Factor Authentication (MFA) Key, Connect via USB-A or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key NFC via USB-A and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
ssh -i path/to/private_key username@hostname

The path format differs between Windows and Unix-like shells. Keep the private key on the client; the server must be configured to accept the corresponding public key. Microsoft illustrates this option in its Factory OS SSH guide. A key is not a substitute for server-side authorization: the matching public key must be accepted for the account.

Specify a port

If the administrator gives you a custom SSH port, OpenSSH clients commonly use the -p option, followed by the port number. Check the installed client’s manual or app documentation for exact syntax and compatibility before relying on options beyond the basic connection command.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What to expect when connecting

At first contact, an SSH client may ask you to verify the server’s host key. If a server you have connected to before presents a changed host key, do not accept it automatically. Verify the fingerprint with the server administrator through a trusted channel before proceeding.

Best Value
FIDO2 U2F Security Key Passkey Two-Factor Authentication (2FA) USB Key PIN+Touch (Non-Biometric) USB-A Type TrustKey T110
  • Security Key : Protect your online accounts against unauthorized access by using FIDO2 and U2F authentication with T110. It's the world's most protective security key that works with windows, Mac OS, Linux as well as Chrome, Firefox, Edge and many other major browsers.
  • Certified with the new FIDO2 standard, T110 provides the benefit of fast login and strong protection against phishing, account takeover as well as many other online attactks.
  • Works with : Bank of America, Github, Google, Microsoft, DUO, Twitter, Facebook, Dropbox, Apple, ebay, BINANCE, mor and more.
  • Fits USB-A port : Insert the T110 security key into the USB-A port of each service and log in conveniently with one touch
  • For the driver download and user guide, please visit TrustKey Solutions Home support page.

After the server identity check, provide the password or use the private key configured for your account. Server policies differ: a server may disable password authentication or require a particular key or other supported method. OpenSSH supports multiple authentication approaches, including public keys and one-time passwords; see the OpenSSH features page.

When you need to transfer files

An SSH login opens a remote shell; it does not require a separate file-transfer tool. For transfers, OpenSSH also provides SFTP and SCP, which operate through SSH. Use them only when you need to move files rather than simply work in a remote terminal. The OpenSSH project describes its suite as supporting encrypted remote login and file transfers on its features page.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.