where did telnet go? (10.13 preview)

Is it just me or is the telnet client no longer present in macOS High Sierra? There doesn't appear to be an open source drop in replacement that works out of the box, and telnet + libtelnet combination from opensource.apple.com doesn't appear to work out of the box either. I think the telnet package that gentoo uses could be patched to work, but wanted to see if anyone wanted to weigh in here first before I spend too much time on that.

Not just you.


It is at

/usr/bin/telnet
on my Mac with 10.11, but it is not there for me in 10.13


Another thread recommends Using ssh and sftp instead.


As a temporary solution I just copied the telnet file from my other machine.

there is nc (netcat?) ... which is like telnet


I haven't yet found a workaround for the lack of ftp (other than to build/install ncftp I guess)


This is a definite retrograde step on Apple's part 😟

There's a pretty huge list of "work arounds" concerning the lact of ftp, but they all involve a lecture concerning the lack of security in ftp and a list of the various alternate protocols that could be getting used. If you're using ftp for anonymous ftp, that's better done using HTTP. If you're using ftp for other things, you're better off using sftp, scp, or something similar.


To be blunt, I'd expect a networking person to look at you like you were asking about Gopher support if you complained about the lack of an ftp client. :-/

The problem is some programs using ftp to access data located in servers controlled by 3rd parties.


Does ftp support via PHP work? Is that a native implementation or does it use the standard Unix tools?

If you've got some reason that you need ftp (or telnet), file a bug report in the bug reporter. Those get read and tabulated, not forum posts.


YOu can check the PHP source code if you've got questions about how it implements ftp. But given that there's no configuration options that I can see for the ftp module (where'd you have to specify the external path, for instance) I'd assume it's its own implementation.

I use Telnet everyday and so I jumped over hoops to copy it over from my Sierra machine and posted a bugreporter "suggestion" to put it back.

Can you ssh from terminal instead of using telnet? Way more secure....

Go to "www.gnu.org/software/inetutils/" (full URL omitted to avoid moderation)

Click on the HTTP download link for "Inetutils"

Download "inetutils-1.9.4.tar.gz"

tar zxvf inetutils-1.9.4.tar.gz

cd inetutils-1.9.4

./configure

make

sudo make install

telnet rainmaker.wunderground.com


<sigh>

Hi, where is it located?

any suggestions why i cannot copy the telnet application to /usr/bin


Operation not permitted

Can you symlink it?

what do you mean?

Telnet is removed in high sierra due to its a 32bit program 😐. I use ssh now.

Copy the binary somewhere you are able to and symbolically link it to a location in your path, ie


sudo ln -s /path_of_choice/telnet /usr/bin/telnet


..or even expand your PATH to include the location where you copied the telnet binary to, ie add


export PATH=$PATH:/path_of_choice/


....and add it to your .profile or .bash_profile depending on your shell.


I can#t test it since I binned my 10.13 install due to the disk space issue.

it works.thanks

thank you. I used the other workaround

That is one of a number of system directories that is protected by SIP - System Integrity Protection. There are lots of instructions on the Internet about how to disable SIP. Do NOT do that. 3rd party software like ftp or telnet should be installed into /usr/local. This is not an Apple thing either. This is how it was always supposed to work. Apple just enforces it now. Any decent open source package should install into /usr/local by default. If it doesn't, I suggest avoiding it.

It doesn't have to be a 32bit program. I grabbed the source for telnet from macOS 10.12 (from opensource.apple.com) and built it using Xcode 9 beta 3, compiled as 64-bit, and it works fine so far.


If Apple doesn't put it back, someone (maybe me) will do the legwork to get a working replacement into "homebrew".

I would use /use/local/bin for any items not maintained by macOS.

Use the which command to find where a command is located. Many of the UNIX commands are supplied by Apple in /usr/bin, which should be in your path. It looks like my copy of /usr/bin/telnet is relatively recent, so I assume that it was in the last OS release. If you add your own telnet, you also have to check the order of the directories to make sure that you are using the correct code. Many items in /usr/bin are actually links to files in other directories. Do echo $PATH to see how your console is set up.


BradleyRossMacBook:~ bradleyross$ which telnet


/usr/bin/telnet


BradleyRossMacBook:~ bradleyross$ ls -l /usr/bin/telnet


-r-xr-xr-x 1 root wheel 117008 Mar 22 19:57 /usr/bin/telnet


BradleyRossMacBook:~ bradleyross$ ls -l /usr/bin/java


lrwxr-xr-x 1 root wheel 74 Jun 4 13:48 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java


BradleyRossMacBook:~ bradleyross$

telnet is good for debugging things, telnet *** 25, telnet xx 80 ... telnet *** 443 ...

There is no **/usr/bin/telnet** on High Sierra

Telnet is an incredibly useful tool to quickly determine if just about anything is responding on any port. It is a ping with attitude for debugging.


Can't believe Apple remove this very standard basic UNIX tool. Insanely Great san great.

Still shows in the Terminal interface as an option in High Sierra...


https://www.evernote.com/l/Atkmb6YDLaFJgrd7t4WS_X5asC_sLJXXZCE


(are they ever going to fix the image upload in this forum software!?)

Just copied telnet from my Sierra box (/usr/bin/telnet) over to High Sierra (/usr/local/bin) and it works fine. Used it to test the extended hello protocol repsonse from Apple's iCloud email SMTP server. (can't do that with SSH).


Filed Apple Bug Report 33917965 Telnet Missing High Sierra 10.13b5


In the event that you don't have it, I pulled it from my Apple server and zipped it here:

https://cerniuk.org/wiki/files/p1o2f332

where did telnet go? (10.13 preview)
 
 
Q