Blog: 2023-09-18

From razwiki
Revision as of 02:42, 18 September 2023 by Razzi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Working on using expect to set up ssh on a fresh debian vm

https://phoenixnap.com/kb/linux-expect phoenixnap with the good articles as per usual


Ok ssh is working, have to adduser ronin then add the ronin public key to /home/ronin/.ssh/authorized_keys.

This took a while because I tried to allow logging in as root, and messed with config.

But I unmessed the config and there isn't much really to getting a public key into the authorized keys file. Though permissions are finicky.

Once that's fully scripted then I'll try to make the qemu-system headless, and somehow notify ssh is up, or just poll. Then we're just about at 1 command to fresh debian ssh session!

Though I could have been using segfault.net.


Also I can see now why vagrant split these up, they're slow and do a lot.

ronin create

ronin ssh


or just


ronin


I think just ronin is good\

Also once ssh is up and running, I can snapshot the machine so that next time I don't have to do the ssh adding part. Then I have to back up the debian image somewhere, and ronin can use that, much faster/easier.

Also want to set the grub timeout to 0 or 1 for faster boot.