Live data from Hacker News

An excruciatingly detailed guide to SSH (but only the things I find useful)

grahamhelton.com

51–60 of 120 posts

Re: An excruciatingly detailed guide to SSH (but only the things I find useful)

#51

Great article that collected a lot of info that I usually wind up looking for separately. But I have to ask: do people really find color schemes like this easier to read? I'm squinting at it throughout.

> I'm squinting at it throughout Same here. I have anecdotally noted that many people, like myself, who were around in the days of actual green screen terminals and later green monochrome monitors are far less likely to prefer dark mode than younger people. For me, the advent of color screens that made black-on-white text possible was a huge improvement in terms of readability and eye strain reduction, and I cannot i…

Amber was better than green.

And as someone else mentioned, dark rooms may be part of it too. I find light backgrounds less obnoxious in brighter light, but i avoid brighter lights by preference.

Re: An excruciatingly detailed guide to SSH (but only the things I find useful)

#52
post #45

If you have a lot of hosts listed in your ~/.ssh/config file, you can keep the file from getting too cluttered by using the Include directive, which supports wildcards... # in ~/.ssh/config Include config.d/*.conf # in ~/.ssh/config.d/work.conf host work hostname myoffice.example.com user myuser # in ~/.ssh/config.d/client1.conf host client1.dev hostname dev.client.example.net user someuser host client1.prod hostname…

The host directive also supports wildcards.

For example, add `host *_work ` and then some stiff that is the same for all work hosts like host1_work.

Re: An excruciatingly detailed guide to SSH (but only the things I find useful)

#55
I can't read this unless I hack up the CSS to not be dark text using a thin typeface on a black background. I could edit the CSS so that it's normal fonts with higher contrast colors, but instead I think I'll go "someone made something on the internet and I'm not the audience, good for them, but I'm closing this tab again."

Re: An excruciatingly detailed guide to SSH (but only the things I find useful)

#56

There is an amazingly simple directive missing here: # in sshd_config: AuthorizedKeysCommand /usr/bin/php /etc/ssh/auth.php %u # in /etc/ssh/auth.php $user = $argv[1] ?? ''; $user = rawurlencode($user); echo file_get_contents("https://gihub.com/{$user}.keys"); This is obviously not production quality code, but just demonstrates the gist of the configuration. Basically, you can do a number of things, like verify the u…

little typo there: "gihub"

Re: An excruciatingly detailed guide to SSH (but only the things I find useful)

#57
post #56

There is an amazingly simple directive missing here: # in sshd_config: AuthorizedKeysCommand /usr/bin/php /etc/ssh/auth.php %u # in /etc/ssh/auth.php $user = $argv[1] ?? ''; $user = rawurlencode($user); echo file_get_contents("https://gihub.com/{$user}.keys"); This is obviously not production quality code, but just demonstrates the gist of the configuration. Basically, you can do a number of things, like verify the u…

little typo there: "gihub"

Nice catch! Too late to edit it though.

Re: An excruciatingly detailed guide to SSH (but only the things I find useful)

#58
Some years ago, I read a post on HN where someone made a text-mode game(? or something similar?) available through SSH. People could play the game by opening an SSH session and play from their terminals. This was non-trivial, and they explained all the ways they configured sshd to prevent players from running binaries other than the game.

I didn't bookmark that post, and I haven't been able to find it again to my great dismay. If anyone remembers this post and still has it, I'd love to read it again.

Re: An excruciatingly detailed guide to SSH (but only the things I find useful)

#59
post #58

Some years ago, I read a post on HN where someone made a text-mode game(? or something similar?) available through SSH. People could play the game by opening an SSH session and play from their terminals. This was non-trivial, and they explained all the ways they configured sshd to prevent players from running binaries other than the game. I didn't bookmark that post, and I haven't been able to find it again to my gre…

https://overthewire.org/wargames/ ?
Post reply on HN