Code2care@Mac % telnet example.com 443
zsh: command not found: telnet
If you try to run the telnet command on your Mac which is running on macOS Catalina (10.15) or higher. You will get the error "telnet command not found". This is because since Catalina, telnet command binary has been removed from Mac due to security concerns, as it transmits data in plain text, which can be intercepted and read by an attacker and they can steal sensitive data such as passwords.
The alternative is to make use of the telnet is the nc command.
% man nc
NAME
nc – arbitrary TCP and UDP connections and listens
...
...
DESCRIPTION
The nc (or netcat) utility is used for just about anything under the sun involving TCP or UDP.
It can open TCP connections, send UDP packets, listen on arbitrary TCP and UDP ports,
do port scanning, and deal with both IPv4 and IPv6. Unlike telnet(1), nc scripts nicely,
and separates error messages onto standard error instead of sending them to standard
output, as telnet(1) does with some.
Common uses include:
• simple TCP proxies
• shell-script based HTTP clients and servers
• network daemon testing
• a SOCKS or HTTP ProxyCommand for ssh(1)
• and much, much more
The options are as follows:
-4 Forces nc to use IPv4 addresses only.
-6 Forces nc to use IPv6 addresses only.
-A Set SO_RECV_ANYIF on socket.
...
Example:
nc code2care.org 443
Facing issues? Have Questions? Post them here! I am happy to answer!
- How to list all users in Mac Terminal
- Docker Desktop needs privileged access macOS
- Mac: How to show count of files and folders in Finder
- How to Change Background Color TextEdit on Mac
- How to adjust MacBook Desktop icons size
- Test internet speed using macOS Terminal command
- How to change the default font and text size in Microsoft Excel for Mac
- How to install Java on macOS [Big Sur]
- How to come out of dquote prompt in Terminal - macOS/Linux
- How to Increase MacBook Trackpad Cursor Speed on macOS Ventura/Sonoma
- Fix: Microsoft Excel Quit Unexpectedly on Mac
- How to Adjust macOS System Font Size
- How to Quit Applications on Mac Using Terminal
- How to check zsh installed version using terminal
- Two Ways to Extract rar (*.rar) files on Mac
- How to Right Click on Mac Desktop?
- How to Add Brew to PATH M1/M2 Mac
- How to search (find) in macOS Terminal Console Text
- macOS 13 Ventura - The New About this Mac Window
- TextEdit Get the count of lines in a file
- How to run .sh file in Mac Terminal
- Google Search Hot Trends Screensaver for Mac OS X
- Check Reboot History Mac
- [Solution] Mac Update Stuck Preparing macOS Ventura 13.0 About 30 minutes remaining
- Display Safari URL address link on hover
- How to install multiple Python Packages at once using pip/pip3 command - PIP
- How to delete all text after a character or string in Notepad++ - NotepadPlusPlus
- [Android Studio] How to locate code for activity_main.xml - Android-Studio
- Officially Send WhatsApp message using webpage (html) - WhatsApp
- Bash How to Save Output of a Command to a Variable - Bash
- How to remove Floating Action Button Android Studio Blank Activity Template - Android-Studio
- How to Empty Recent File List in Notepad++ - NotepadPlusPlus
- Android Disable EditText from Auto Focus on Activity load - Android