Back to blog
SSH Client4 min read

Telnet for Mac: Built-in Options and Alternatives

If a device's manual gives you a Telnet address and a port, the first thing you notice on a current Mac is that typing telnet gets you nothing. Apple stopped shipping the Telnet client, so the command that worked on older macOS releases is gone, and the search results for a replacement are mostly old forum threads.

You still have three workable routes: the built-in nc, a Homebrew build of the real Telnet client, or a Mac-native client that keeps Telnet next to SSH, RDP, and VNC in one host list. This page covers all three, when Telnet is still the right protocol, and how to open a session in DartShell when you want the connection to live with the rest of your hosts.

Is Telnet still available on macOS?

No. The telnet binary is not part of a current macOS install, and there is no Telnet server either. What Apple kept is /usr/bin/nc (netcat), which can open a raw TCP connection to port 23 and pass text back and forth:

nc 192.168.1.50 23

That is enough to check whether a device answers, send a short command, and see the reply. It is not a full Telnet client: it does not negotiate the Telnet option set (terminal type, echo, line mode), which some switches and console servers require before they draw a usable prompt.

If you want the real client back, Homebrew packages the GNU inetutils build:

brew install telnet

That restores a telnet command with the behaviours you remember from Windows and older macOS releases, including the escape sequence to close a stuck session. It is a terminal-only tool: no saved hosts, no credentials, no history of which device uses which port.

Two small checks before you blame the client. Confirm the device is listening for Telnet — many have it disabled by default and expose SSH instead. And confirm the port, because plenty of lab gear moves Telnet off 23 to something like 2323.

Telnet alternative for Mac: three options

1. Built-in nc. Nothing to install and nothing to configure. Best for a one-off check against a device on your own network, or for a scripted probe. Worst for daily work, because every session starts with typing an address.

2. Homebrew telnet. The familiar client, one command to install. Best when you already live in the terminal and only need a handful of devices. Still no host library, still no record of which credential belongs to which box.

3. A Mac-native client with a Telnet mode. This is the route that scales once Telnet is one of several protocols you use. DartShell treats a host as the saved object and the protocol as one of its connection methods, so a device that already has an SSH entry can also carry a Telnet entry with its own port. Saved hosts, grouped folders, and search mean you stop retyping addresses that you only touch twice a year.

Whichever route you take, the security boundary does not move: Telnet sends the login and the whole session in clear text. Keep it on a trusted, isolated network.

Telnet vs SSH: when to keep Telnet

SSH replaced Telnet for shell access, and on any device that supports both there is no reason to choose Telnet. Encrypted transport, key authentication, and port forwarding all come with SSH.

Telnet survives in three situations. First, legacy equipment: switches, routers, power distribution units, PBX systems, and industrial gear that were built before SSH and will never receive it. Second, console servers that expose a Telnet front end to serial ports, where the Telnet part is just the transport to a device that has no network stack at all. Third, lab and classroom setups where the network is physically isolated and the device only speaks Telnet.

If a device offers Telnet but sits on an untrusted network, do not open port 23 to the internet. Reach it through an SSH tunnel instead:

ssh -L 2323:192.168.1.50:23 user@jump-host
nc 127.0.0.1 2323

The device sees a local connection from the jump host, and the traffic that crosses the network stays inside SSH.

How to open a Telnet session in DartShell

If your device's instructions give you a Telnet address and port, you can open a session in DartShell and run a command the device supports to check that it responds.

Before connecting, confirm Telnet is enabled on the device and that your Mac can reach its address and port. Ordinary Telnet sends login credentials and session contents in clear text. Use it only on a trusted, isolated network.

Choose Telnet in DartShell

On the Hosts page, open the dropdown next to New SSH (新建 SSH) and choose New Telnet (新建 TELNET). The new host form displays an orange TELNET badge.

Choose New Telnet from the connection menu

  • Address is the device's IP address or hostname. My test service ran on the same Mac virtual machine as DartShell, so I used 127.0.0.1. That address points to the machine running DartShell. When connecting to another device, enter that device's reachable address.
  • TELNET Port defaults to 23. My test service listened on 2323, so I entered 2323. Use the port configured on your device.
  • Username and password depend on the device. The local test service required no authentication, so I left both fields blank.

The test service uses 127.0.0.1 on port 2323. Click Connect after checking the form.

Send a command and check the reply

Click Connect (连接). Once the test service displayed the lab> prompt, I entered status and pressed Return. It replied Device status: OK. This showed that the client could send a command and receive the service's reply. Both the command and the reply were predefined by the test service. On your device, use a read-only command listed in its documentation.

The Telnet terminal shows the test service reply Device status: OK

If the connection times out, check the address, the port and whether the device is listening for Telnet, then look at the network or firewall. If you see a login prompt, follow the device's authentication instructions. If you can open the terminal but your query gives an unexpected result, confirm that you are signed in and that the device supports the command.

Frequently asked questions

What is the best telnet alternative on Mac?

For a single device on your own network, nc is enough and needs no install. For daily work across several devices, a Mac-native client with a Telnet mode is the better telnet alternative on Mac, because the address, port, and credentials stay saved instead of living in your shell history.

Is there a telnet equivalent in macOS?

Yes and no. The exact telnet binary is gone, but /usr/bin/nc ships with macOS and opens a raw TCP session to port 23, so there is a telnet equivalent in macOS for quick checks. For full option negotiation you need brew install telnet or a client with a Telnet mode.

Can I get a macOS telnet alternative without Homebrew?

Yes. nc is already there, and Mac-native clients install from the App Store rather than Homebrew. That macOS telnet alternative path matters on managed machines where installing command-line packages is not allowed.

Is Telnet secure on a Mac?

No. Telnet is clear text in both directions, including the password. Only use it on an isolated or trusted network, and reach remote devices through an SSH tunnel or a VPN rather than exposing port 23.

Where to go next

If you are moving from a Windows client, see PuTTY alternatives for Mac. For a setup that also relies on SSH, see how SecureCRT and DartShell compare on Mac. And if the same host list also needs a screen rather than a shell, see best VNC client for Mac.

Related reading

More on the same problem, in the order most people need it.

DartShell

Want a smoother remote ops workflow on macOS?

DartShell brings SSH, RDP, VNC, SFTP, and serial access together in one native macOS app, so you can reduce tool switching and repetitive setup.

Download DartShell