Rendered at 21:49:15 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
amterp 10 hours ago [-]
Big fan of gron[0] and zoxide[1]. Gron for flattening and viewing JSON, and zoxide (z) for fuzzily jumping around on my system or on remote systems with z installed.
Also been using Rad [2] (disclaimer: am author) to replace my suite of Bash scripts and write new ones, quite happy with one atm which sets reminders e.g. 'remind 2h check the CI build' which will give me an OS reminder in two hours, I use it a ton at work.
-J for jumping
-L for port forwarding
-X for pulling remote applications to view on my laptop (waypipe for Wayland)
Adding all those, and ips and whatnot to .ssh/config so I just type:
ssh foo
aborsy 23 hours ago [-]
SFTP is just simpler and better, if available.
fragmede 2 days ago [-]
setup LocalCommand, in ~/.ssh/config, so your config files get copied to every server you connect to, so you have all your aliases and scripts.
rft 2 days ago [-]
I intentionally avoid this, especially if I am not the only one connecting to a server. I see potentially breaking others' expectations for my convenience as a clear downside. Plus there is a level of paranoia there, I might have unintentionally included a credential in some config that gets copied over. That potentially increases the blast radius of a server compromise beyond what is strictly required for that specific server. I might copy over some scripts into a directory not in $PATH, easy enough to add it to my shell session if needed, CTRL+R helps as well.
fragmede 2 days ago [-]
...why are you sharing user accounts in this day and age? Yes, absolutely, don't mess up the shared space everyone uses, but why are you sharing that space in the first place?
mmh0000 2 days ago [-]
I’m not saying yours does, but be careful with LocalCommand, it will often break rsync and other tools that use ssh behind the scenes.
Also been using Rad [2] (disclaimer: am author) to replace my suite of Bash scripts and write new ones, quite happy with one atm which sets reminders e.g. 'remind 2h check the CI build' which will give me an OS reminder in two hours, I use it a ton at work.
[0] https://github.com/tomnomnom/gron [1] https://github.com/ajeetdsouza/zoxide [2] https://github.com/amterp/rad
https://cli.github.com/
The time saving of a well filled ~/.ssh/config is impressive, especially once you start juggling ProxyJump hops.
-J for jumping -L for port forwarding -X for pulling remote applications to view on my laptop (waypipe for Wayland)
Adding all those, and ips and whatnot to .ssh/config so I just type:
ssh foo
Fresh account with two Ask HN questions that are bound to get replies
EDIT: also check their comment history.
...and easy session sharing