Persistent root's home directory.


Recommended Posts

Hi mates.

 

I use my unraid box apart from the usual NAS usage as a linux jump box to my seedbox. I've intalled ssh, and have a pair of distributed keys so not need to type secure passwords each time I  make SCP / RSYNC / ... from and to my seedbox.

 

But every time I need to reboot, or when the power comes dowm I loose all the /root/.ssh content and a few scripts I've have in the root's home directory.

 

There are any way to preserve all the content inside /root directory or there are any prebuilt script that makes it?

 

Thanks

Link to comment

I know there is an SSH plugin (but I have no experience with it).

 

You could copy the contents of your .ssh directory to somewhere on your thumb drive, and then copy it back via a script that runs via go.  You will likely need to change permissions of the files, and restart the ssh service after doing so.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.