53 Replies
      Latest reply: Oct 16, 2017 8:10 PM by Truenorth49 RSS
      theeternalsw0rd Level 1 Level 1 (0 points)

        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.

        • Re: where did telnet go? (10.13 preview)
          mrgnw Level 1 Level 1 (0 points)

          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.

            • Re: where did telnet go? (10.13 preview)
              jmorby Level 1 Level 1 (0 points)

              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

                • Re: where did telnet go? (10.13 preview)
                  NotMyName Level 4 Level 4 (725 points)

                  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.  :-/

                    • Re: where did telnet go? (10.13 preview)
                      CordovaBay Level 1 Level 1 (0 points)

                      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?

                        • Re: where did telnet go? (10.13 preview)
                          NotMyName Level 4 Level 4 (725 points)

                          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.

                        • Re: where did telnet go? (10.13 preview)
                          thethor Level 1 Level 1 (0 points)

                          FWIW - 25 year of systems and network management, masters degree in C.S. and I'd call anyone who doesn't see the immediate value of the telnet *cllient* for debugging purposes and legacy support a rambling idiot (pardon my French).

                           

                          The decision to drop the telnet client from OS X (no, I refuse to call it "MacOS" since that's the 8-bit mishmash that ran the Macintosh) is utter lunacy. Although a graphics designer may _never_ have to operate the command line, let alone telnet, a lot of C.S. and I.T. professionals have bought into the Apple OS X platform. These individuals deserve the ounce of respect their dollar worth is.

                           

                          From my observations, Apple has been in the dark hours of Tim Cook been nudging the Apple OS X platform steadily towards the design of the black box iPad. And for every little nudge (dropping telnet is one) I get more inclined to install Linux on my MBP.

                            • Re: where did telnet go? (10.13 preview)
                              Thor_HoG Level 1 Level 1 (0 points)

                              You are absolutely correct, sir.   Removing telnet and ftp bash clients from High Sierra was a mistake, not withstanding the ramblings of others.  The same is true for Microsoft's move to require telnet and ftp clients to be installed as a "feature" when they attempted to mitigate security issues by doing so.  In a large degree, they still don't seem to understand security.  Oddly enough, tftp still works on HS.  Go figure.

                               

                              One can copy telnet and ftp over from a Sierra /usr/bin to High Sierra /usr/local/bin and it works fine.  Be sure to chmod +xr both after the copy (using sudo).  Much easier than downloading other versions, etc. 

                               

                              t

                        • Re: where did telnet go? (10.13 preview)
                          cerniuk Level 1 Level 1 (0 points)

                          Just copied telnet from my Sierra box (/usr/bin/telnet) over to High Sierra 9/usr/bin/telnet) 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

                        • Re: where did telnet go? (10.13 preview)
                          markbyrn Level 1 Level 1 (0 points)

                          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.

                            • Re: where did telnet go? (10.13 preview)
                              paul_at_tahoe Level 1 Level 1 (0 points)

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

                                • Re: where did telnet go? (10.13 preview)
                                  sirdir Level 1 Level 1 (0 points)

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

                                  • Re: where did telnet go? (10.13 preview)
                                    mebibyte Level 1 Level 1 (0 points)

                                    Why should one want to use ssh instead of telnet? It's totally different use-cases. I don't want a telnet shell, but I want to debug my mailserver using telnet and check other services on the servers I have to administrate and telnet is THE tool for me to do that. As a server admin, I cannot live without telnet and I use a Mac because it gives me Linux power with the "it just works" environment. Pretty crappy, if these tools go away.

                                     

                                    By the way - I have 25 years experience in software development and hold a PhD in computer science, so I think I know what I talk about. Anyhow - it's ridiculous that there is even a discussion about "why don't you now do x instead of a", while a was around always and someone now decided to drop it, obviously without knowing what he or she does. We shouldn't discuss dirty workarounds and alternatives but just get telnet back. Period.

                                  • Re: where did telnet go? (10.13 preview)
                                    Yaybe Level 1 Level 1 (0 points)

                                    Hi, where is it located?

                                    • Re: where did telnet go? (10.13 preview)
                                      cerniuk Level 1 Level 1 (0 points)

                                      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.

                                    • Re: where did telnet go? (10.13 preview)
                                      john daniel Level 2 Level 2 (35 points)

                                      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>

                                      • Re: where did telnet go? (10.13 preview)
                                        Ksog Level 1 Level 1 (0 points)

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

                                          • Re: where did telnet go? (10.13 preview)
                                            dfjdejulio Level 1 Level 1 (10 points)

                                            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".

                                          • Re: where did telnet go? (10.13 preview)
                                            HighlyExperienced Level 1 Level 1 (0 points)

                                            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$

                                            • Re: where did telnet go? (10.13 preview)
                                              cerniuk Level 1 Level 1 (0 points)

                                              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!?)

                                              • Re: where did telnet go? (10.13 preview)
                                                tomgidden Level 1 Level 1 (0 points)

                                                While I agree it's not a bad idea to deprecate these insecure standard utilities by removing them from the standard install, they're still sometimes necessary when working with embedded stuff for IoT, as well as the occasional router.

                                                 

                                                Fortunately,

                                                brew install inetutils
                                                

                                                seems to work, installing `/usr/local/bin/telnet` and `ftp`, as well as the old favourites `rlogin`, `rsh`, `rcp`...

                                                  • Re: where did telnet go? (10.13 preview)
                                                    ylluminate Level 1 Level 1 (0 points)

                                                    Removing these programs from the standard install has no justification whatsoever. They will eventually have to be used and forcing users to download and install someone else's coreutils is just outrageous.

                                                     

                                                    EDIT:

                                                     

                                                    Also I just tried using the GNU inetutils and they are buggy on OS X. Which is no surprise, they aren't meant for this system which makes removing the BSD ones even more ludicrous.

                                                  • Re: where did telnet go? (10.13 preview)
                                                    adreyer Level 1 Level 1 (0 points)

                                                    If you've used telnet for basic connectivity tests, consider nc (netcat) instead.

                                                     

                                                    Look how much easier nc is than telnet to see if I can reach port 2195 on gateway.push.apple.com.

                                                     

                                                    nc -z gateway.push.apple.com 2195
                                                    

                                                    Connection to gateway.push.apple.com port 2195 [tcp/] succeeded!

                                                     

                                                     

                                                    telnet gateway.push.apple.com 2195
                                                    

                                                    Trying 17.188.155.159...

                                                    Connected to gateway.push-apple.com.akadns.net.

                                                    Escape character is '^]'.

                                                    ^]

                                                    telnet> q

                                                    Connection closed.

                                                      • Re: where did telnet go? (10.13 preview)
                                                        ekrub Level 1 Level 1 (0 points)

                                                        Upgraded to High Sierra today and already miss telnet.

                                                         

                                                        My needs for telnet went a little beyond basic connectivity tests. I needed to send a command. Fortunately, nc (netcat) can do a simple command as well. I was able to replace this:

                                                         

                                                        echo "some command" | telnet example.com 12345
                                                        

                                                         

                                                        with this:

                                                         

                                                        echo "some command" | nc -c example.com 12345
                                                        
                                                      • Re: where did telnet go? (10.13 preview)
                                                        ylluminate Level 1 Level 1 (0 points)

                                                        I sure hope this change is temporary and that these standard utilities will be back once 10.13 is out of beta. It would be utter folly to remove these utilities, regardless of their "insecurity." To be honest, whoever uses these protocols without the knowledge that they are insecure has no business using networking utilities at all. I mean, for goodness sake, I thought it was well known that not every host has the luxury of running `sshd'.

                                                         

                                                         

                                                        TLDR:

                                                        These programs are absolutely necessary. Removing them is tantamount to removing all doors without locks because locked doors are "better."

                                                          • Re: where did telnet go? (10.13 preview)
                                                            iTen Level 2 Level 2 (50 points)

                                                            Brew is your friend, now pour yourself a pint of telnet using "brew install telnet" or install brew first.

                                                             

                                                            Drink up!

                                                              • Re: where did telnet go? (10.13 preview)
                                                                napabar Level 1 Level 1 (0 points)

                                                                OK, I got Brew and downloaded Telnet.  As a client, it works fine.

                                                                 

                                                                Now, how do I enable telent server under High Sierra?  The following old instructions no longer work.

                                                                 

                                                                 

                                                                anand$ sudo launchctl

                                                                Password:

                                                                launchd% load -F /System/Library/LaunchDaemons/telnet.plist

                                                                launchd% exit

                                                                • Re: where did telnet go? (10.13 preview)
                                                                  ylluminate Level 1 Level 1 (0 points)

                                                                  As napabar explained, only the telnet client is available in homebrew. No server. Plus, what about ftp, rsh, rcp, etc.? Don't just say to use the the GNU inetutils, as they can be buggy on OS X. No surprise; they are hardly ever used on this system. Now people basically have no alternative. Not to mention that the last stable release of it was in 2015.

                                                                   

                                                                  Frankly, Apple has no excuse for removing these tools. Pushing ssh is pointless; the reason that people don't use ssh is NOT because there are alternatives available. The reasons that people don't use ssh are typically one of:

                                                                   

                                                                  1. they have no choice, or
                                                                  2. encryption is NOT needed or wanted in their use case

                                                                   

                                                                  Trying to force ssh down people's throats is not going to work. There are simply places where ssh can't go, shouldn't go, or isn't allowed to go.

                                                                   

                                                                  Yeah, despite popular belief, locking everything up is not always needed. Again, it's a real shame that Apple always pushes stupid agendas like this for no real reason. It's just pointless and painful. But when has Apple cared about forcing people to go through pointless and painful changes, after all?

                                                                   

                                                                  Maybe all this sounds hard on Apple. But take a step back and ask yourself: does it hurt a multi-billion dollar company to just let their developers and power-users have what they want / need? Of course not. They just either get a rush out of controlling their customers and / or they convince themselves of stupid reasons as to why that's a good thing.

                                                                   

                                                                  By the way, I'm not angry at you, iTen. I'm just saying the homebrew is unfortunately not sufficient for this issue. And I'm angry that Apple forces people to jump through these pointless hoops just to get some needed functionality.

                                                              • Re: where did telnet go? (10.13 preview)
                                                                okand Level 1 Level 1 (0 points)

                                                                I freaked out about this too but then a coworker told me I can test for listening ports with netcat (nc).

                                                                 

                                                                It's much cleaner, you can exit it with ctrl+c instead of having to change to a keyboard layout that has [ on its own key without modifiers just to be able to do the escape sequence.

                                                                • Re: where did telnet go? (10.13 preview)
                                                                  ebeaudry Level 1 Level 1 (0 points)

                                                                  You can create a simple script to replace telnet with installed nc command:

                                                                  sudo echo '#!/bin/bash' > /usr/local/bin/telnet
                                                                  sudo echo 'nc -c $@' >> /usr/local/bin/telnet
                                                                  sudo chmod 755 /usr/local/bin/telnet
                                                                  
                                                                  • Re: where did telnet go? (10.13 preview)
                                                                    alexeychik Level 1 Level 1 (0 points)

                                                                      "sudo brew install terminal" does the trick. You need to have Homebrew installed.

                                                                      • Re: where did telnet go? (10.13 preview)
                                                                        AnthonyNYC Level 1 Level 1 (0 points)

                                                                        This is part of a very calculated strategy that Apple has. I think you are under the (wrong) impression that OS X somehow is friendly to Developers/Technology people. This hasn't been Apple's focus in nearly a decade. Recently they have switched from being merely neutral to openly hostile. They don't want your money. You aren't welcome on their platform. You can take your nerdy tools and take them somewhere else. I'm not sure why anyone would be surprised by this. Video Editors got the message years ago and moved on, yet us, developers somehow are lingering on. OS X is now for sharing pictures of cats and browsing Facebook. Have you tried Vim in touchbar macbooks? I rest my case.

                                                                        • Re: where did telnet go? (10.13 preview)
                                                                          xnsys Level 1 Level 1 (0 points)

                                                                          There's always ZOC I suppose.

                                                                          • Re: where did telnet go? (10.13 preview)
                                                                            AP1399 Level 1 Level 1 (0 points)

                                                                            Another possible fix:

                                                                            If running MacPorts, install 'inetutils'. It contains telnet.

                                                                            • Re: where did telnet go? (10.13 preview)
                                                                              Truenorth49 Level 1 Level 1 (0 points)

                                                                              I was able to restore Telnet from the Time Machine

                                                                              In Finder's Go menu select Go to Folder...

                                                                              In the window that opens enter "/usr/bin"

                                                                               

                                                                              Now open Time Machine and go back to a time before 10.13 was installed

                                                                              Find Telnet and ask to restore it to <some folder>

                                                                              I found that it restored the whole /usr/bin folder but it is small