0
Respost

ssh/ Authorized Keys

Stu Rader fa 10 anys updated by Erix Molinie fa 10 anys 4
Working inside Ajenti V for a couple days getting familiarized.  I don't know if it's when I added users or changed a password, but logging into cli or sftp (winSCP) stopped me from using the .ppk file and just requires a password (server refused our key). At first I thought I was locked out but then tried the passwords and they worked. Not generally what I would like to leave open. Is this a requirement of using Ajenti if you're setting up websites? thx for a great software, Stu

Answer

Answer
Respost
Hi Stu,

Ajenti doesn't affect your ability to use SSH pubkey auth. However, if you deleted and recreated user, it's possible that their authorized_keys file was lost. Try looking for the <user home>/.ssh/authorized_keys file and checking whether your public key is present there.
GOOD, I'M SATISFIED
Pushed me in the right direction.
Satisfaction mark by Stu Rader fa 10 anys
Answer
Respost
Hi Stu,

Ajenti doesn't affect your ability to use SSH pubkey auth. However, if you deleted and recreated user, it's possible that their authorized_keys file was lost. Try looking for the <user home>/.ssh/authorized_keys file and checking whether your public key is present there.
The file authorized_keys file was still in place, but somehow I corrupted that existing user by what you said (recreated user).  So simply creating a new su user it's all back in good order. (and deleting the old one and his directory). It's just takes a bit getting used to being able to login to Ajenti with a password for that user, whose sudo password is actually different in a shell. I get it now:) Thanks Eugene.
You can setup OS user sync (Configure > Users > Sync) and use actual password of the user to log into Ajenti :)
Hi,
I agree with Eugene, but don't forget to give "roles" to the users before saving and restart "Ajenti" or you will not be able to log in after the reboot..
Very good software
Regards