0
Ok, So I have an ubuntu server setup with SFTP chroot. So, any user added to the group 'sftpusers' will be only able to use sftp commands on the server, today while testing rsync, i didnt think and added ubuntu user to the sftp group and cant ssh into the server anymore.
There are no other users which I can use to login to the server and undo this mess, Is there any way that I can fix this???
Based on my understanding, there is no way in and I have to delete the server.
Its on AWS, So I can detach the root volume, attach it another new server, mount it to /mnt/ comment the chroot configuration, umount it, detach it and then attach it back to the original server. I should be able to ssh into the server now, remove the user ubuntu from sftpgroup and then uncomment the chroot config back and It should work as before. – LutherSmi – 2019-10-22T19:37:17.673
Its a lot of steps but at least the server is recoverable. – LutherSmi – 2019-10-22T19:38:13.523
I believe there is no 'recovery' mode in AWS but the above method should work. Thank you – LutherSmi – 2019-10-22T19:39:52.013
Correct no such thing on AWS but your described method should work and be just as quick. Good luck. – micke – 2019-10-22T19:43:21.743