How to SSH Using Mac Terminal

Do you know that macOS has SSH pre-installed on it? Yes, macOS has a built-in OpenSSH client that you can use with the help of Terminal.

What is OpenSSH?

OpenSSH-based secure shell (SSH) client, for secure key management and access to remote machines.

You can find the SSH Client located at /usr/bin/ssh


How to use SSH on Mac Terminal

  1. Open Terminal from your Applications folder or by searching for it using Spotlight.
  2. Now run the SSH command to connect to a server.

    Syntax:

    ssh username@remote-server

    Example:

    ssh mike@192.178.91.121

    The default port is 22.

Using SSH on Mac Terminal

For More Reading:
  1. https://www.ssh.com/academy/ssh/command
  2. https://support.apple.com/guide/terminal/ssh-trmlvar001/mac

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!