Live data from Hacker News

Show HN: Shittp – Volatile Dotfiles over SSH

github.com

91–97 of 97 posts

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#91

This reminds me - in a previous company I worked at, we had a bunch of old firewalls and switches that ran SSH servers without support for modern key exchange algorithms etc One of the engineers wrote a shell alias called “shitssh”, which would call ssh with the right options to allow the old crufty crypto algorithms to be used. This alias got passed down to new members of the team like a family heirloom.

Nice, although wouldn't work today. Modern distros (ime, fedora 42) need you to update policy and reboot. You can't connect with just --key-exchange YOLO1 any more

I hate network vendors. Wish I could put BSD on my old Catalysts.

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#92

Earlier quoted context omitted.

Would not be uncommon in a container or purpose-built VM.

Have you run into that? I can't recall ever facing that issue. Seems very weird to strip down that much and then use a different editor. Do you remember if ed was missing in those machines?

Yes I've run into containers where every utility that wasn't needed to run the service was stripped out. Even tools such as "less."

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#93

Earlier quoted context omitted.

Would not be uncommon in a container or purpose-built VM.

Have you run into that? I can't recall ever facing that issue. Seems very weird to strip down that much and then use a different editor. Do you remember if ed was missing in those machines?

> Do you remember if ed was missing in those machines

I had to laugh out loud. I couldn't imagine such a system, that wouldn't be POSIX compliant. So I looked it up, and indeed, it's entirely possible. Debian doesn't necessarily include it.

https://unix.stackexchange.com/a/609067

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#95

Earlier quoted context omitted.

Have you run into that? I can't recall ever facing that issue. Seems very weird to strip down that much and then use a different editor. Do you remember if ed was missing in those machines?

Yes I've run into containers where every utility that wasn't needed to run the service was stripped out. Even tools such as "less."

So what was the editor?

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#96
post #68

Earlier quoted context omitted.

My guy, the one liner as written copies all dot files. Mozilla included

My guy, the one liner as written copies all dot files. Mozilla included Exactly why I apply Sun Tzu methodology.

ψ ︿_____︿_ψ_

¯\_(ツ)_/¯

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#97

Earlier quoted context omitted.

scp my-precious-dotfiles remote:~ trap 'ssh remote rm my-precious-dotfiles' EXIT ssh remote Or you can even bake the trap into the remote bash's invocation, although that'd be a bit harder.

That overwrites the remote dotfiles. Any workarounds?

If they are in your home dir, does that matter?
Post reply on HN