How to connect SSH using Terminal in macOS


How to connect SSH using Terminal in macOS

An SSH connection is essential if you want to connect to a remote server via the console, SSH stands for Secure Shell and offers the advantage, that the connection is secure through encryption. Anyone who works with Windows systems knows programs such as Putty or mobaXterm. The newer Windows versions now have an SSH client on board.

How does this look like under the macOS operating system big sur out? Much easier than expected, because macOS is a UNIX-based system that, like Linux, has many configurations on board. For SSH access, the SSH service must always run on the remote server or other network devices. You also need to know the access data and the IP address. The rest is relatively simple.

connect SSH using Terminal

  • First, we need to open the Terminal window.
  • To open Hold CTRL + ALT + T on your keyboard it will open the Terminal window.
  • Alternatively, you can do this through the search option, just type Terminal and hit enter.
  • To connect to the server press the command: ssh or ssh user@11.135.777.99
  • Optionally, after executing the command, you are asked to confirm the credibility of the host if everything looks OK, confirm with “ yes ” to connect or “ no ” to cancel.
  • Depending on whether you use an SSH key or password, your user password will be requested in the last step.
  • That’s it! If you have a prompt like this now “ root @ servername: ~ # ” see, you are connected to your server via SSH. When you are finished you can use your active session “ exit ” finish again.