Site TIPS PAGE🔎 SEARCH  Ξ INDEX  MAIN MENU  UP ONE LEVEL
 OJB's Web Site. Version 2.4. Mac Tip.Location: tip101 tips mac owen2 
Tip

Discuss   Up to OJB's Mac Tips List

Terminal: Remote Secure Login

Its useful to be able to connect to other Mac computers over the Internet or LAN and use the command line to view and control them. Using a secure connection means you can safely type passwords, etc without your typing being viewed by anyone else. For example, if another machine isn't responding you could try connecting to it and listing the running processes, then you could kill any processes which look problematic.

To use remote login you need to setup the computer you want to connect to. Go to the System Settings, then General, then Sharing (or just System Preferences, then click the Sharing icon for system prior to Ventura), then make sure the Remote Login option is on. You will also need to know an administrator's username and password for that computer.

To connect to the computer from another one use the "SSH" (secure shell) command. Both computers have to be connected to the network or Internet, of course. Also many firewalls might stop SSH communications on port 22. Type "ssh user@computer", where user is the user name and computer is the computer name or IP address. For example, to connect to owen3.otago.ac.nz as owen, enter "ssh owen@owen3.otago.ac.nz". If the computer doesn't have a domain name use its IP address instead.

When you connect to the other machine you will need to accept the signature if this is the first time you have connected. Commands you type will go to the remote computer - you can run programs, create files or do anything else described in these pages. To try to fix "hung" or slow computers, use the "top -u" command to view processes using the CPU, then the "kill" command to stop the problematic process (see the other terminal tips for details).

Related Tips

Terminal Example: Listing Files
Terminal Example: Shell Script
Terminal Tips: Deleting Files
Terminal: Change Priority
Terminal: Changing Privileges
Terminal: Fixing a Hang
Terminal: Listing Directory
Terminal: Manual and Help
Terminal: Terminate a Process
Terminal: Top Processes





I usually write a blog post about once a week. The latest post can be viewed here: Think for Yourself: In the end, everything is just an opinion. Be skeptical, and think for yourself! (posted 2026-04-25 at 21:12:02). Or go to the Home Page of My Blog to choose a post to view.

I do podcasts too! You can listen to my latest podcast, here: OJB's Podcast 2026-04-14 How Far is that Star?: How would we really know how big the universe is? Or subscribe to my podcast RSS feed, on my RSS Feeds page.

If you're not sure what to view from the thousands of pages on my site, here are some suggestions: My Latest Airshow Report (photos and movies from Warbirds Over Wanaka, 2026), My Favourite Wines and Beers (tasting notes for some of my favourites), An Interesting Astronomical Observation (learn a bit about astronomy from these observing notes), See Some Photos (A short rail journey through the Taieri Gorge), Read Some Mac Tips (Learn about how to use your Mac, and fix some problems).


Latest Site News and Notifications (Desktop): You are currently viewing OJB's web site, version 2.4 which has some major changes, and possibly errors! Please report any problems to ojb@mac.com.

 Site ©2026 by OJBWeb ServerMicrosoft Free ZoneMade & Served on Mac 
Site Features: Blog RSS Feeds Podcasts Feedback Log07 Jun 2024. Hits: 1,001,302,973
Description: Mac TipLogged: nothingLoad Timer: 70ms