Live data from Hacker News

Closing a stale SSH connection

davidisaksson.dev

81–90 of 91 posts

Re: Closing a stale SSH connection

#81
post #56

Earlier quoted context omitted.

~ is also the (very common) shorthand for home directory. How do Nordic keyboard users deal with that?

As a former user of ISO layout keyboards, IMHO a great quality of life improvement is to switch to ANSI. A US ANSI keyboard has all programming symbols in the right place. Yet it makes Latin/Nordic and other symbols easy to type via compose key (e.g. Right Alt), or similar. For example, Compose a + ' = á, a + e = æ, o + / = ø, s + s = ß, s + o = §, etc. An annoying issue is that most brands won't sell ANSI keyboards…

What are you in that your local ISO layout has these issues? The Irish layouts on X and Windows don't have this issue and makes typing just about any diacritic easy, though I go a bit further and use the UnicodeExpert variant. MacOS, OTOH, has issues unless I switch to an ANSI layout.

Re: Closing a stale SSH connection

#82

I feel old. I remember when we moved from telnet and rlogin to ssh and this was in the man page. I'm also happy to learn kids are still using terminals and ssh.

I suspect many linux users nowadays don't even know that manpages exist or don't want to use them. Otherwise blogposts like this would not exist.

Man pages are too long and technical for 70% of casual use when the answers are a Google away. Normal usage patterns don't involve using every option, and that's what man pages are focused on documenting.

Re: Closing a stale SSH connection

#83
post #58

Earlier quoted context omitted.

The MAME emulator will actually run a VT260 rom, allowing the emulated serial port to be output to a socket.

Are guides available on how to setup and use? Edit: Found this https://zork.net/~st/jottings/Real-VT102-emulation-with-MAME...

Here are a bunch of URLs that I collected for the VT240.

http://www.bitsavers.org/pdf/dec/terminal/

https://github.com/larsbrinkhoff/terminal-simulator/issues/1

https://www.mail-archive.com/simh@trailing-edge.com/msg09086...

https://forums.bannister.org/ubbthreads.php?ubb=showflat&Num...

https://simh.trailing-edge.narkive.com/qgzCvrl8/dec-vt-emula...

The command that I ended up using was:

  mame -rp . vt240 -window -nothrottle -host null_modem -bitb socket.foo.com:23

Re: Closing a stale SSH connection

#84
Probably too late to post here but the timing of this article was interesting. I use the ~. on a daily basis because something in the firewall at work was causing my idle ssh connections to hang. But just yesterday morning right before reading this article I added ServerAliveInterval 30 in the client ssh config to see if it would help and guess what, the connections were not stuck today.

Re: Closing a stale SSH connection

#85
post #84

Probably too late to post here but the timing of this article was interesting. I use the ~. on a daily basis because something in the firewall at work was causing my idle ssh connections to hang. But just yesterday morning right before reading this article I added ServerAliveInterval 30 in the client ssh config to see if it would help and guess what, the connections were not stuck today.

You might also want to set ServerAliveCountMax to something high, the default is 3 which means if your network is down for 3*30s the SSH client will disconnect.

Re: Closing a stale SSH connection

#86
post #15

Earlier quoted context omitted.

The main thing about Mosh is you need both on the sever and the client. Installing on random servers you might be ssh -in only once feels gross.

Has Mosh crypto been reviewed? Last I checked they were using some custom crypto on top of UDP instead of using something like DTLS or QUIC. Given SSH is one of the most battle tested protocols out there I am wary of replacing it with something else.

> QUIC

Mosh has been effectively unmaintained since long before QUIC even existed. It should be rewritten to use QUIC, except that QUIC's requirement for TLS certificates rather than generic asymmetric cryptography basically breaks any integrations like this.

Re: Closing a stale SSH connection

#87
post #56

Earlier quoted context omitted.

As a former user of ISO layout keyboards, IMHO a great quality of life improvement is to switch to ANSI. A US ANSI keyboard has all programming symbols in the right place. Yet it makes Latin/Nordic and other symbols easy to type via compose key (e.g. Right Alt), or similar. For example, Compose a + ' = á, a + e = æ, o + / = ø, s + s = ß, s + o = §, etc. An annoying issue is that most brands won't sell ANSI keyboards…

What are you in that your local ISO layout has these issues? The Irish layouts on X and Windows don't have this issue and makes typing just about any diacritic easy, though I go a bit further and use the UnicodeExpert variant. MacOS, OTOH, has issues unless I switch to an ANSI layout.

I was not claiming any local ISO has trouble typing other characters with compose key or similar.

My point was that ANSI is more ergonomic than ISO for programming, and all local characters are still easy to type.

Re: Closing a stale SSH connection

#88
post #71
post #56

Earlier quoted context omitted.

As a former user of ISO layout keyboards, IMHO a great quality of life improvement is to switch to ANSI. A US ANSI keyboard has all programming symbols in the right place. Yet it makes Latin/Nordic and other symbols easy to type via compose key (e.g. Right Alt), or similar. For example, Compose a + ' = á, a + e = æ, o + / = ø, s + s = ß, s + o = §, etc. An annoying issue is that most brands won't sell ANSI keyboards…

I use the french azerty layout (fr-pc) on macOS (equivalent fr-latin9 on linux). It is an ISO keyboard, I am able to do all of the examples you wrote, and more: option b is ß, ã is option ~ and a, "é" is its own key, so is "à" or "ç". I am able to write 120 words per minute, not so special, but good enough for me. I find the ansi/qwerty too slow with its compose system (I tried on the canadian-intl layout made for Qu…

Is this a physical Azerty keyboard? How do you get around having to hold shift to type any number?

Re: Closing a stale SSH connection

#89

Earlier quoted context omitted.

They know the man pages exist and they want to use them, but most are written to merely be consistent in format and not necessarily in content. The worst thing to omit is examples. What users do nowadays is rely on alternatives such as https://tldr.inbrowser.app/

This is my experience with manpages, they're great if you sort of know what you need or want deep CLI options reference but often lack in recipes or examples.

man -k

Re: Closing a stale SSH connection

#90
post #82

Earlier quoted context omitted.

I suspect many linux users nowadays don't even know that manpages exist or don't want to use them. Otherwise blogposts like this would not exist.

Man pages are too long and technical for 70% of casual use when the answers are a Google away. Normal usage patterns don't involve using every option, and that's what man pages are focused on documenting.

I'm not sure why a video of a 60's TV show would be useful when you're trying to get an explanation of command line options for common posix commands. But you do you.
Post reply on HN