Platform

SSH tunnels on a Mac, and the status of Transputty for macOS

There is no Transputty for Mac. A Mac version is planned, but work on it has not started: there is no app, no preview, no screenshot and no date. Until that changes, this page shows how to do SSH port forwarding on a Mac with what macOS already includes.

Status
Planned
Download
Not available yet

Planned, not started. Transputty for macOS does not exist. A Mac version is planned; work on it has not started, there is nothing to download and there is no date. The only Transputty app is for Windows 11, and it is itself in development with no public build; see release status.

What is the status of Transputty for Mac?

Plainly: a Mac version is intended, and no part of it has been built. There is no Mac app, no beta and no screenshot, because there is nothing to photograph. This page will change when that does.

The rest of this page does not depend on Transputty. macOS has everything needed for SSH port forwarding, and for many people the built-in tools are enough.

Why is PuTTY not needed on macOS?

PuTTY is an SSH client with a terminal window, written for Windows at a time when Windows had none. macOS ships with OpenSSH and the Terminal app, which cover the same ground: ssh opens sessions and forwards ports, ssh-keygen makes keys, and ssh-agent holds them.

Two things carry over from PuTTY with a small step:

  • Keys. OpenSSH does not read PuTTY's .ppk files. In PuTTYgen on Windows, load the key and choose Conversions, then Export OpenSSH key, and copy the exported file to ~/.ssh/ on the Mac with permissions 600.
  • Saved sessions. The equivalent of a PuTTY saved session is a Host block in ~/.ssh/config, shown below.

How do I forward a port over SSH on a Mac?

Open Terminal. The three kinds of SSH port forwarding each have one option.

Local forward (-L). A port on your Mac leads to a host the SSH server can reach. This makes 127.0.0.1:5433 on the Mac reach db.internal:5432 through bastion.example.com. The local port is 5433 so that it cannot collide with a PostgreSQL server running on the Mac itself:

ssh -N -L 5433:db.internal:5432 deploy@bastion.example.com

Remote forward (-R). A port on the server leads back to your Mac. This makes port 8080 on the server reach a web server on port 3000 of your Mac:

ssh -N -R 8080:localhost:3000 deploy@bastion.example.com

By default the server listens on its loopback address only, so port 8080 is reachable from the server itself. Opening it to other machines needs GatewayPorts in the server's sshd_config.

Dynamic forward (-D). A SOCKS proxy on your Mac sends each connection out from the server:

ssh -N -D 1080 deploy@bastion.example.com

Point an application at the SOCKS5 proxy 127.0.0.1:1080.

In all three, -N means "do not run a remote command", so the session only forwards. The tunnel lasts while the command runs; Control-C ends it. The guides to local and remote forwarding and to the SOCKS proxy explain the address syntax and the server settings involved.

How do I save a tunnel in ~/.ssh/config?

Put the details in a Host block so that the command becomes short and the options are never forgotten:

Host db-tunnel
    HostName bastion.example.com
    User deploy
    IdentityFile ~/.ssh/id_ed25519
    LocalForward 5433 db.internal:5432
    ServerAliveInterval 30
    ServerAliveCountMax 3
    ExitOnForwardFailure yes

Start it with:

ssh -N db-tunnel

What the last three lines do:

  • ServerAliveInterval 30 sends a keepalive through the encrypted channel after 30 seconds of silence. With ServerAliveCountMax 3, ssh exits after three unanswered keepalives, about 90 seconds. Without these, a connection cut by a router can appear alive indefinitely.
  • ExitOnForwardFailure yes makes ssh exit if it cannot set up the forward, for example because port 5433 is already in use on the Mac. Without it, ssh prints a warning and stays connected with no tunnel.

RemoteForward and DynamicForward are the config equivalents of -R and -D. For a server behind a bastion, ProxyJump bastion.example.com replaces -J.

To avoid typing a key passphrase each time, the ssh that comes with macOS can keep it in the Keychain (macOS 12 or later): run ssh-add --apple-use-keychain ~/.ssh/id_ed25519 once, and add UseKeychain yes and AddKeysToAgent yes to the Host block.

How do I keep the tunnel alive?

ssh does not reconnect. When the Mac sleeps or changes network, the session dies and the local port closes. Two common ways to restart it, both with key-based login:

autossh. It starts ssh and starts it again when it exits. Install it with Homebrew and reuse the config entry:

brew install autossh
autossh -M 0 -N db-tunnel

-M 0 turns off autossh's own monitoring port and relies on ServerAliveInterval to make ssh exit when the link is dead, which is the usual modern setup.

launchd. macOS can supervise the tunnel itself. A launch agent, a small property list file in ~/Library/LaunchAgents, can run ssh -N db-tunnel when you log in and, with its KeepAlive key set, start it again whenever it exits. This needs no extra software, but the tunnel has no user interface: you inspect it with launchctl and its log file.

Both approaches leave a short gap after each drop in which the local port is closed and applications get "connection refused". The page on automatic reconnection covers what to expect and how tools differ.

Which Mac apps manage SSH tunnels?

If you would rather have a window or a menu-bar item than a config file, several Mac apps do this. They are listed here as pointers, from each vendor's own site as checked on 2026-11-26; requirements and prices change, so confirm them there.

App What its site says
Core Tunnel A tunnel manager for macOS with local, remote and dynamic forwarding. Free for one host, with a paid Premium tier. Sold on the Mac App Store, on Setapp and directly.
Secure Pipes Local, remote and SOCKS forwarding for macOS 12 and later, with automatic reconnection. A free edition with limits and a paid Pro edition.
SteepyTunnel A menu-bar tunnel manager with local, remote and SOCKS forwarding and jump hosts. Free. Its site lists macOS 27 or later on Apple silicon.
Loris Tunnel A tunnel manager for Windows and macOS with local, remote and dynamic forwarding. Free for up to three concurrent tunnels.
Termius A terminal app for Mac, Windows, Linux, iOS and Android that includes port forwarding in its free plan.

This list is descriptive, not a ranking. There is a longer look at Core Tunnel and at plain OpenSSH in the comparisons.

What if I use both a Mac and a Windows PC?

Apart from the Keychain options, the ~/.ssh/config entries above also work with the OpenSSH client on Windows, and Transputty for Windows can import hosts and their forwards from an OpenSSH config file. That makes a config file a reasonable common format while the Mac version does not exist. Transputty for Windows describes what the Windows app does and what state it is in.

Common questions

Is there a Transputty for Mac?

No. Transputty exists only as a Windows 11 app, and that app is still in development with no public build. A macOS version is planned, but no Mac code has been written and there is no release date. Nothing on this site can be downloaded for macOS.

Do I need PuTTY on a Mac?

No. PuTTY became popular on Windows because Windows had no SSH client for many years. macOS includes OpenSSH, so the ssh command in Terminal already does what PuTTY does, including local, remote and dynamic port forwarding. Private keys in PuTTY's .ppk format must be exported to OpenSSH format with PuTTYgen before ssh can use them.

How do I create an SSH tunnel on a Mac?

Open Terminal and run ssh -N -L 5433:db.internal:5432 deploy@bastion.example.com. Port 5433 on your Mac then reaches db.internal port 5432 through the SSH server, for as long as the command keeps running. Use -R for a remote forward and -D 1080 for a SOCKS proxy. Press Control-C to close the tunnel.

How do I keep an SSH tunnel running on macOS?

Set ServerAliveInterval and ExitOnForwardFailure in ~/.ssh/config so that ssh exits when the link is dead, then let something restart it: autossh, installed with Homebrew, or a launchd agent with KeepAlive. Both need key-based login, because nobody is there to type a password when the tunnel restarts.

Are there SSH tunnel manager apps for the Mac?

Yes. Core Tunnel, Secure Pipes and SteepyTunnel are tunnel managers for macOS, Loris Tunnel runs on macOS and Windows, and Termius is a terminal app for Mac that includes port forwarding. Transputty is not one of them: it has no Mac version. Check each vendor's site for current requirements and prices.

Transputty keeps SSH tunnels running on Windows

Local, remote and SOCKS5 forwards in one window, automatic reconnection with ports that stay bound, and a clear reason when something fails. In development; no public build yet.