596
submitted 2 months ago by cm0002@lemmy.world to c/linuxmemes@lemmy.world

It was also actually pretty fun!

you are viewing a single comment's thread
view the rest of the comments
[-] aMockTie@lemmy.world 28 points 2 months ago

What happens if the SSH session closes before dd finishes? Sounds pretty badass but I don't think I would trust this approach in prod lol

[-] cm0002@lemmy.world 32 points 2 months ago

Well the 1 SSH session bit was for dramatic meme-effect lol, you can actually connect back without issue (at least it did for me) so worst case if you weren't working in tmux you'd just have to start dd again

Worst worst case, you'd just end up back where you were probably heading before anyways, KVM/IPMI

[-] aMockTie@lemmy.world 6 points 2 months ago

Sure, I suppose as long as sshd is up and running in the ramdisk environment (which you mentioned in another comment, along with all other services) you could always reconnect. Very neat and clever!

[-] exu@feditown.com 10 points 2 months ago

You could use screen or tmux for a persistent terminal session.

[-] aMockTie@lemmy.world 11 points 2 months ago

True, but I was more thinking about the issue of reconnecting in general when you just nuked sshd.

[-] InnerScientist@lemmy.world 2 points 2 months ago

As long as you only copy off the disk, you can just reboot and the whole system in RAM vanishes and the normal system boots again for the second try.

[-] possiblylinux127@lemmy.zip 1 points 2 months ago

Maybe run ssh on 2 different ports?

this post was submitted on 02 Aug 2024
596 points (98.4% liked)

linuxmemes

20901 readers
791 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS