Readit News logoReadit News
neonate · 6 years ago

Deleted Comment

Dead Comment

floatingatoll · 6 years ago
To summarize OP:

Their 10.15.4 macOS built-in ssh terminal command is unable to reach hostnames when a port number higher than 8192 is used.

EDIT:

Comments differ; one indicates issues SSH'ing to lower than 8192 ports, another indicates no issues SSH'ing to higher than 8192 ports.

Apofis · 6 years ago
chaos:1111

Dead Comment

slovette · 6 years ago
Catalina is broken in many ways.

This complain and Remote Access in (so I can SSH to my $4k MacBook) disables itself anytime the computer is restarted.

But more importantly, I’ve still not found a Thunderbolt Display that doesn’t routinely crash screen manager services upon idle user activity. 3 x $300 thunderbolt3 dock solutions later and not a one hasn’t crashed this computer. All main brands, two of which sell accessories in the Apple store.

Problem also existed with a top of the line 13” MacBook Pro.

I’ve just gotten used to the shoddy-ness that is Catalina. Figure if I go to the bathroom, upon return I have a fresh, new clean desktop environment. Feature not a bug. Yay!

kerakaali · 6 years ago
This is why I went back to Mojave. Apple has had a history of breaking dev environments on release for people who don't code under their ecosystem of dev tools (well on second thought, they make life difficult at times even for people that do), and I don't see that trend changing in the future.

Eventually every new release has stabilised, but it seems that doesn't hold true for Catalina.

taormina · 6 years ago
A history of breaking dev environments? I'd argue they have a history of breaking everything on release. I do agree that they have a history of stablizing after a few months, but it's been longer than that.
ImprovedSilence · 6 years ago
haha oh boy. I was actually just about to install Catalina today, figuring I'd put it off long enough and everything has to be smooth by now (and system update bugs me about it often enough)... But lo and behold, I log into HN and see this thread....
dman · 6 years ago
The unix illusion breaks more and more with every release
fmajid · 6 years ago
The main reason why I won't buy the new MacBook Air is that it's Catalina only. Good thing my Mac Mini shipped with Mojave despite my ordering it months after the Catalina release. It's really the Windows Vista of macOS.
dawnerd · 6 years ago
I've tried to find a thunderbolt3 dock that worked perfectly but none have - not even limited to Catalina. My monitors will randomly switch refresh rates or resolutions or not even display picture. Plug them into a pc and they work every single time.
emmelaich · 6 years ago
I have Catalina. It doesn't play nicely with a Dell D6000 powerbrick / dock.

The display is fine but it won't charge at the same time.

I have not installed the Dell 'driver'; it loads a kext so probably won't work anyway. I'm not upset about that. Docking should not require a kernel module.

That's about it. Catalina has been fine every other way.

0xff00ffee · 6 years ago
Try a Henge dock. Been using one for 6 years. No monitor or thunderbolt issues.
kevindong · 6 years ago
The Dell U3419W (with Thunderbolt 3) works exactly as promised for me.

https://www.dell.com/en-us/work/shop/accessories/apd/210-arc...

slig · 6 years ago
I've had a lot of compatibility issues between my U3818DW and macOS and Dell doesn't care. Even more, their support staff on their public forums don't even acknowledge their buggy USB-C implementation and insists on blaming Apple. [1]

[1]: https://old.reddit.com/r/UsbCHardware/comments/ettgrg/dell_r...

acdha · 6 years ago
That's true for most Macs, too: people are very prone to believing that their experience is universal rather than a hardware failure or local configuration issue.
cromka · 6 years ago
It has USB-C, not Thunderbolt.
unicornmama · 6 years ago
I completely disabled everything to do with sleep. “Solved” the problem for me.
anonexpat · 6 years ago
The first thing I install on a fresh Mac is amphetamine.
JoachimS · 6 years ago
My issue with Catalina is that every time i open up the laptop and log in (so sleep, not reboot) it has forgotten the Apple-ID password and needs to be entered. I've tried all suggested solutions (I'm not alone) including resetting the NVMRAM etc. But so far no luck.

I'm holding off installing Catalina on my main machine. And now they seem to focus on 10.16 instead.

lowbloodsugar · 6 years ago
I have two CalDigit TS3+ docks (home and office). At home, I have a 4k monitor in the display port and a Thunderbolt 27" plugged into the TB3 port using an adapter. My previous dock couldnt handle the 27" at all, so I had to plug that in directly to the Mac. Usually when I needed to wake the machine, I had to unplug both the doc and the 27", log in, and then plug them back in again. Now with the CalDigit, it just works. It's also like $300, so I guess TB3 is hard and they know it =)

I am still on Mojave tho, so may suck on Catalina.

TheRealDunkirk · 6 years ago
Figure this is the place to jump in here. I tried a couple cheaper docks and sent them back to Amazon immediately. I bought a CalDigit, and it's been rock solid for many months now. I connect an external display (Asus 27" 4K) to it, remove it, use the built-in display, and use it in clamshell, off and on, all through the day. Not one problem at all. There's no sugar-coating it; they're at the top of the range for TB3 docks, but mine's been worth every penny. I've been on Catalina since launch day.
ipython · 6 years ago
I know "me too" is discouraged here but yes I have the same experience (Caldigit TS3+ dock, works great in Mojave). Expensive, yes, but at least now it's down to $250 both at apple as well as amazon.
syndacks · 6 years ago
I had this problem as well on a 13" MacBook Pro.

My "fix" was to go HDMI to USB-C (instead of Thunderbold to USB-C).

I understand this might not be viable for everyone, but it resolved the issue for me.

0xff00ffee · 6 years ago
", I’ve still not found a Thunderbolt Display that doesn’t routinely crash screen manager services upon idle user activity. "

I've been using a Dell U2515H for almost six years on my late 2013-model MBP and thunderbolt port, never had an issue. I'm also going through a Henge thunderbolt dock. It's not a macOS problem.

vardump · 6 years ago
I think Dell U2515H doesn't have Thunderbolt, only Display Port. So I wouldn't call that a Thunderbolt display, if it doesn't have ability to chain further Thunderbolt devices.
sitzkrieg · 6 years ago
naive take, i have same problem but if i boot into windows on the mbp it works fine. how do you explain that?
jiveturkey · 6 years ago
LG 4K works perfectly for me.

I've tried every T3 dock available. They all have bugs that render them unusable for me. The one that was the closest to being good -- OWC 12 port I think -- wouldn't tolerate MBP sleep. After wake from overnite sleep (maybe the Mac would go to hibernate -- I didn't investigate further) the dock would need to be reset. I've never had the MPB crash though, but I haven't gone back to trying docks now with Catalina.

There certainly is something particular to your environment causing this crash. Such a bug would be in all the news.

lostlogin · 6 years ago
I haven’t encountered that, but have other more minor gripes. When in clamshell and an external monitor is plugged in and you restart all you have actually done is shutdown (you you have to open up the laptop and turn it on again). The way things break for ‘security reasons’ which you have to hunt for though the settings page. Eg VMWare Fusion won’t work unless you happen to know that it needs enabling in security settings, but some breakages are even more obscure and don’t generate an error message.
ravishi · 6 years ago
Oh, so that's why my computer restarts from time to time when I get away from my desk. And I'm not even on Catalina yet, just use a 13" MacBook Pro.
FlagsAreFun · 6 years ago
My 2013 Mac Pro does this too - it's actually (at least in my case) a kernel panic.
amaccuish · 6 years ago
> This complain and Remote Access in (so I can SSH to my $4k MacBook) disables itself anytime the computer is restarted.

I've found IPv6 stops working after sleep, the appropriate area in the network pane is blank (I use RA not DHCPv6). Since the Mac updates its DNS records and puts IPv6 addresses in I've found accessing via hostname stops working, but then of course I can use the IPv4 address which works fine.

skoskie · 6 years ago
Yep. I turned off ipv6 support on my router an computers, and still use RA. No more issues on local network except one ... the DNS settings on my MacBook constantly revert to a default value, killing my host name access to my docket containers. But at least it’s a quick fix.
geerlingguy · 6 years ago
Yeah both of my TB3 docks result in crashes after unplugging or plugging in while the display is off. Very annoying behavior.
internalthief · 6 years ago
I've been using the Belkin Thunderbolt 3 dock for years now, and have had 0 issues with crashes.
makecheck · 6 years ago
So, some quick debugging here...

In his screenshot the bad login hangs at "Connecting to clickontyler.com port" (noting that no port number appears and no period at the end).

While I can’t be sure exactly which "ssh" patch Apple may have, this seems to be the relevant file and logging code (starting at line 448):

https://github.com/openssh/openssh-portable/blob/master/sshc...

In that code, the only thing that can set the "strport" value that is used in the log is a call to getnameinfo().

If that string is corrupted in any way, e.g. not terminated or perhaps has invisible characters that trigger bad terminal behavior (such as invisibility), the act of logging it might produce the apparent hang seen here.

Again, a guess but it is possible that getnameinfo() is not necessarily processing the record correctly (for whatever reason). One such example is in the "getnameinfo" man page at the end, under CAVEATS, where they show an example of not simply trusting the result of the first call.

tylerhall · 6 years ago
Good sleuthing, but the missing port number is simpler than that. I just blacked it out of the screenshot. I know very well that running sshd on a non-standard port has no benefits security-wise, but it does lessen the length of my log files from dumb script kiddies. I redacted the port in the screenshot for that reason.
jonny_eh · 6 years ago
You should mention that in the caption, or use a non-black colour as a mask.
simias · 6 years ago
>I know very well that running sshd on a non-standard port has no benefits security-wise

I don't know if Mac OS is different but on other unices ports above 1024 are not privileged, meaning that anybody can bind them. Now it increases the attack surface only a tiny bit (you have to have your sshd offline, and the attacker have local access, and them bind a fake sshd to your port in order to MitM. And even then they won't be able to spoof the server key unless it's not chmoded correctly).

Still, better safe than sorry IMO, I also use a non-standard sshd port but I keep it in the low range. In my experience it's more than sufficient to get rid of 99% of dumb attacks that generally don't bother looking beyond port 22.

INTPenis · 6 years ago
I think using a non-standard port is a good layer of security, among other layers.

My personal suggestion though is to use 1022 because it's below 1024. This means only root is allowed to bind to it. Preventing possible connection jacking attacks if an attacker is able to crash your own server and run theirs to harvest your passwords.

jlgaddis · 6 years ago
You might add a few "-v"'s to your "ssh" command-line for more verbose debugging information.
bo1024 · 6 years ago
A port is mentioned in this line, you may want to redact it. Where I put X's below, is a port number.

> So, I tried ssh ip-address -pXXXXXXXXX

0x0 · 6 years ago
Have you tried running ssh in lldb/gdb and dumping a stacktrace when it hangs? Might have to copy the ssh binary to a temp dir to avoid SIP denying ptrace.
ThePowerOfFuet · 6 years ago
Disable password auth and go with keys only, and your logs will go quiet.

Deleted Comment

0x0 · 6 years ago
Maybe there is something funny in /etc/services on this machine that throws the call into an infinite loop? Perhaps near the bottom beyond port 8192?
ProAm · 6 years ago
"It just works" -- Is Apple too large now? Is this a QA problem, product team problem? Management? Catalina is still stumbling and Im surprised to be honest after the past 4 years.
cflewis · 6 years ago
My feeling is that Apple beancounters have decided macOS is mostly a gateway to Xcode for iOS development, anything else is just to help sell laptops. The stuff in "anything else" doesn't need to actually work well, just exist so it can be something on the features list.
asveikau · 6 years ago
I feel like they are doing random deprecations with replacements that don't work as well as the original. As in, leaving the deprecated thing unmaintained but present in the install would be a better outcome. I wonder why they are wasting so much time doing this when they appear to have a working system. I'm not even talking about big items like 32-bit support or opengl but completely random libraries that work fine.
api · 6 years ago
It does help that there is no overall competitor to MacBooks in terms of ease of use or (now that the butterfly keyboard is dead) build quality.

There are decent build PC laptops but you have to run Windows or Linux on them. Windows is a dumpster fire these days with ads in the start menu, the use of "dark patterns" to herd people into MS cloud, and out of control unnecessary telemetry. Linux is fine only if you have a lot of time on your hands to troubleshoot edge case issues and hunt for drivers. Linux also still (through no fault of its own) can't run a lot of apps that many people need.

rvz · 6 years ago
Well no business end-user or any typical Mac user is going to be bothered about something technical like 'SSH' breaking their system. Only actual devs here would care.

For those business users, it just still works. For developers it's a problem.

quantified · 6 years ago
Apple's made huge inroads with developers over the last few years, partly coasting off of a social dislike for Microsoft. There's enough Apple fandom out there that they can probably annoy developers a good deal more without affecting the inroads. After all, exactly what can a dev do about it anyway?
twunde · 6 years ago
Macs have a fairly large share of devs, especially in the startup centers like SF and NYC. Most startups end up with macs as the default computer because of the developer experience as well as the ability to manage them for a consistent user experience using MDM solutions like Jamf or Fleetsmith (both Apple-only)
KarlKemp · 6 years ago
You seem to be nurturing some stereotype of Mac users. Just check (photos of) any Silicon Valley or MIT Cafeteria to maybe calibrate your worldview.
Keverw · 6 years ago
Catalina I haven’t had much problems with, however noticed some odd stuff. Like the Apple Menu and System Preferences it reports one update available but if I go look - nothing. Then was playing with the new TV app and went to watch one of the Apple TV+ shows and all I get is a black screen with audio when watching a show.

Then even before Catalina, my AirPods mic seems to act odd, can hardly hear it and it messses with audio output too when listening to music, sounds like I’m listening to hold music on a telephone unless I disable the mic using a third party app. I think having a old Bluetooth chip might be the reason though since I have a older MacBook while it works great on my iPhone.

sooper · 6 years ago
Almost everyone in my office has issues with Bluetooth headphones mysteriously disconnecting - the sound output drops even though Bluetooth is still connected.

Very annoying and can't find a resolution.

emmelaich · 6 years ago
A focus on security produces problems like these.

I can't blame them too much. It's probably worth it.

neuronic · 6 years ago
Probably just trying to make Catalina thinner.
JdeBP · 6 years ago
Here's an actual bug report:

* https://openradar.appspot.com/radar?id=4931259776106496

From that and the discussions.apple.com. post, hyperlinked elsewhere in this discussion, it appears that the >8192 condition varies according to what the hostname actually is.

The bug report is datelined 2020-04-26, interestingly. There might be a bug in the bug reporting system. (-:

oefrha · 6 years ago
> The bug report is datelined 2020-04-26, interestingly. There might be a bug in the bug reporting system.

No, you can type whatever date you want. The "add a new radar" screen is just a bunch of text input boxes: https://i.imgur.com/nNf457J.png

JdeBP · 6 years ago
The ability to type whatever date one wants is often considered to be a bug. The ability to post-date reports a month into the future sometimes is, too. (-:
saagarjha · 6 years ago
OpenRadar is community-maintained, and rather poorly at that these days.
0x0 · 6 years ago
I can't reproduce this. macOS 10.15.4, ssh'ing to a very high (5digit) port with a hostname no problems.
jpwgarrison · 6 years ago
Same here, 5 digits and a hostname = no problem. There must be some other factor(s) in play.
0xff00ffee · 6 years ago
Ditto. There's a post a few levels above where they are digging into the source of ssh, I'm following that!
ajphdiv · 6 years ago
I can't either, in fact all 10+ of the hosts that I routinely access have ports higher than OPs issue.
andai · 6 years ago
Offtopic but why are people using high port numbers? Additional security due to a nonstandard port? If so, does that go together with anything additional like port knocking? Or is it multiple hosts on the same IP, but different ports?
vgene · 6 years ago
I had the same problem on a MacBook after upgrading to 10.15.4. However, I wasn't using a port number higher than 8192, the socket was 75 with a hostname. The problem was solved when I replaced the hostname with its IP or plugged in an Ethernet Cable. I tried to restart mDNSResponder and flush the dns cache and switch to a different DNS server. Nothing works so far.