root .ssh/ rsa keys disappearing Virtual Environment 5.4-13 (dunno where to post this)

Renato Gallo

New Member
Jul 12, 2018
2
0
1
50
Now and then randomly happens that the ssh key files disappear from the /root/.ssh/ directory.
I use one disk of the proxmox as nas and I got some bash scripts that copy some files via scp.
I made a key exchange on the lan address of all the machines I have to backup files from.
Now and then I have to relaunch the ssh-keygen script and redo the key exchange on all machines because all files like id-rsa.pub disappear from the .ssh directory.
How can I avoid this ?
 
hi,

is this something reproducible? did it happen more than once?

maybe one of your bash scripts is doing it?
 
hi,
It happened twice in a month.
Checked, no scripts are deleting anything in /root all scripts work inside the /home/backup directory and run once a day.
Also checked this morning (after yesterday's backup) the keys are still there.
 
hmm, okay.

i'd keep watching for a while in case they disappear again. but i'm not aware of any bugs that could cause this, but to be sure send your pveversion -v output.

also does anyone else have access on the server?
 
hi,

did the problem happen again?