Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for Michael‭

Type On... Excerpt Status Date
Answer A: Nerf an SSH login outside expected IP range
authorizedkeys You can make restrictions, but it's clunky and not well-standardized. A `command` stanza on an authorized key works like the `ForceCommand` on SSHD Config. It runs the one specified command instead of your requested command or interactive session and then closes the connection. Obvi...
(more)
11 months ago
Edit Post #291361 Initial revision 11 months ago
Question Nerf an SSH login outside expected IP range
Can I restrict myself from certain actions when I SSH in from outside a certain IP range? For instance no `sudo`? Maybe with /.ssh/authorizedkeys having a `from="!1.2.3.4/26"` option with some kind of `command="???"`?
(more)
11 months ago
Comment Post #291359 That user is the same one that posted > Cat abuse refers to any harmful or cruel treatment of cats, such as physical violence, neglect, or abandonment. [&hellip;] on your [What is cat abuse/useless use of cat?](https://linux.codidact.com/posts/291136) question. I would take their commentary wi...
(more)
11 months ago
Edit Post #290797 Post edited:
Newlines
12 months ago
Comment Post #291289 Is `yq` the reaction to "they wouldn't let me put YAML into [`jq`'s I/O](https://jqlang.github.io/jq/manual/#io)?"
(more)
12 months ago
Suggested Edit Post #282528 Suggested edit:
Link Canina. Move some parentheticals to footnotes. Minor grammar improvements.
(more)
helpful 12 months ago
Edit Post #291122 Post edited:
More formatting inside quote block
about 1 year ago
Edit Post #291122 Post edited:
Main section headings. Link hwdb(7).
about 1 year ago
Edit Post #291122 Initial revision about 1 year ago
Answer A: How do you remap mouse buttons?
Wayland, ideally If you are on Wayland, the blessed way is to use the configuration for your desktop environment (DE) to map mouse keys and other input devices, except for a couple well-known options (eg left-handed mode and middle mouse emulation). Wayland, via `hwdb` If your DE doesn't hav...
(more)
about 1 year ago
Comment Post #290163 Makes sense to me. It could save some poor sod from thinking you could pipe to `test` like this: ```sh false | test || echo 'False!' ! false | test && echo 'True!' ``` You're inverting the exit code of `test`, not inverting `false` as someone might imagine. (Is this contrived? Yes, very. Is ...
(more)
about 1 year ago
Comment Post #291099 From the question title, I thought you meant _syntax highlighting_ in the shell, which you can do with [`bat`](https://github.com/sharkdp/bat). Pipe your pretty (or existing) output to `bat` for colors.
(more)
about 1 year ago
Suggested Edit Post #284502 Suggested edit:
Fix Puppy link. Move all the links to a bibliography at the end.
(more)
helpful about 1 year ago
Edit Post #290990 Post edited:
Links!
about 1 year ago
Comment Post #290987 You didn't ask for this, but there's also a tool I use for SSH: [`ssh-audit`](https://github.com/jtesta/ssh-audit). It's perhaps a little too opinionated about NIST curves and the NSA (but if you're concerned about the NSA, maybe that's important). Otherwise pretty helpful.
(more)
about 1 year ago
Edit Post #290990 Post edited:
Specifically mention crypto, because that's a main feature.
about 1 year ago
Edit Post #290990 Post edited:
Rearrange the chart. Editorialize.
about 1 year ago
Edit Post #290990 Post edited:
Table formatting on real site different from preview.
about 1 year ago
Edit Post #290990 Initial revision about 1 year ago
Answer A: How do I diagnose TLS errors?
Over some period of time, I have used a couple tools for local TLS scans and diagnostics. One of them may include pointers for whatever situation you have. | Tool | Description | From | Current? | |------|-------------|------|----------| | `sslyze` | TLS analysis by protocol | | &check; | | `ci...
(more)
about 1 year ago
Edit Post #290475 Post edited:
Hey look, another one.
about 1 year ago
Edit Post #290797 Post edited:
Different run styles
about 1 year ago
Comment Post #290797 True. If your file was made with \*Nix-y tools, it probably has the trailing newline, though.
(more)
about 1 year ago
Edit Post #290108 Post edited:
Yet more ASCII chart tweaking
about 1 year ago
Edit Post #290108 Post edited:
Better ascii art
about 1 year ago
Edit Post #290797 Initial revision about 1 year ago
Answer A: How to count the lines of a file?
I think the typical way to do this uses `wc` ("word count") with the `-l` ("lines") option. ```sh $ wc -l /path/to/file 47 /path/to/file $ wc -l </path/to/file 47 $ cat /path/to/file | wc -l 47 ``` `wc` with no options prints the number of lines, words, and bytes, but `-l` can li...
(more)
about 1 year ago
Edit Post #290544 Post edited:
about 1 year ago
Edit Post #290544 Initial revision about 1 year ago
Answer A: How do I safely replace brew on Big Sur?
If you just want the minimal set of top-level packages to install on your new system, `brew leaves` is less verbose than CodeFarmer's `brew deps --installed`. You get a nice concise list of the packages that are not needed as dependencies by any other package. Edit: This is mentioned in the com...
(more)
about 1 year ago
Edit Post #290108 Post edited:
Diagram
about 1 year ago
Edit Post #290475 Post edited:
Add another
over 1 year ago
Edit Post #290475 Initial revision over 1 year ago
Answer A: How to find your public IP address from command-line?
There are probably myriad services for echoing your IP back over HTTP. Here are a couple: ```sh curl https://api.ipify.org curl https://ip.me curl https://icanhazip.com ```
(more)
over 1 year ago
Edit Post #282493 Post edited:
Tag ssh
over 1 year ago
Edit Post #290108 Post edited:
Workshop the first sentence some more.
over 1 year ago
Edit Post #290108 Post edited:
Mention port forwarding, in case it's important to someone.
over 1 year ago
Edit Post #290108 Post edited:
Mention multiple hops.
over 1 year ago
Edit Post #290108 Post edited:
floating "them" -> actual concrete noun.
over 1 year ago
Edit Post #290108 Post edited:
Add version where ProxyJump was introduced
over 1 year ago
Edit Post #290108 Initial revision over 1 year ago
Answer A: How to forward SSH access of one machine, through another, to the rest of a network?
Grove's answer is likewise good, but OpenSSH introduced `ProxyJump` (`-J`) in 2016 with v7.3, making it even easier to chain SSH hosts together: ```bash ssh -J user@interstitial.example me@destination.example ``` "Real" port forwarding like Canina's answer still has important uses,[^1] but chai...
(more)
over 1 year ago
Suggested Edit Post #282493 Suggested edit:
Tag ssh
(more)
helpful over 1 year ago
Comment Post #289952 So you're just injecting the `-o` args on the next connection after a VPS reprovision? Not every time, yes?
(more)
over 1 year ago