My git crontab was empty.
Today I see it is set to this. I have no idea what it is doing
1 1 */2 * * /home/git/.configrc/a/upd>/dev/null 2>&1
@reboot /home/git/.configrc/a/upd>/dev/null 2>&1
5 8 * * 0 /home/git/.configrc/b/sync>/dev/null 2>&1
@reboot /home/git/.configrc/b/sync>/dev/null 2>&1
0 0 */3 * * /tmp/.X25-unix/.rsync/c/aptitude>/dev/null 2>&1
SSH access is by key only but somehow someone got in, set this crontab, and cleared the git authorized keys file to contain only their key.
<keydata> mdrfckr
- I have set the firewall to deny SSH
- set a non-standard port
- cleared the crontab
- removed the /home/git/.configrc directory
- rebooted
- checked for /tmp/.X25-unix directory but did not find it.
What has happened? What else should I do?
.configrc
that they acquired root. Thegit
user has limited privs on that server. I wonder if it's necessary to have usergit
. I've never liked that. Something to look into. Thanks for the help. – Stephen Boston Jun 23 '20 at 23:42