SSH'ing into remote servers on macOS and Linux

When the topic of SSH arises, most tutorials use PuTTY as the program of choice. But PuTTY is a Windows-only program, therefore people not on Windows cannot use it to access remote computers.
However, there is another SSH client called OpenSSH that is installed by default on macs and most Linux distributions which can be used to access remote computers/servers as well.

To use OpenSSH:

  1. Open your terminal. (Do this on macOS) (This or Ctrl + Alt + T does the trick on Linux most of the time.)
  2. Type ssh username@server_addr in your terminal, replacing username and server_addr with your username and the server's IP address/domain respectively
    For example, I type ssh berkan.sahin@ftp.ug.bilkent.edu.tr to access my home directory on Bilkent servers.
  3. Enter your password when prompted
    Note: If it is your first time connecting to the servers, ssh might ask you to confirm the fingerprint of the server. This is completely normal.
  4. You now have access to a remote shell. Enjoy UNIX! Remember, every command you type will be executed on the remote computer.
  5. When you are done, type exit (or logout). This will log you out and close the connection between you and the remote server.
Back to the homepage

Contact me at:berkan[at]bsahin.xyz

About Me | GitHub: berkan-sahin | Mastodon
Last update: 02/12/2020