Page 1 of 2
SSH - PasswordLess
Posted: Wed Aug 24, 2022 8:05 am
by tienloc1
Hi,
I have an issue and I'm not sure if it's a restriction or not. I can create passwordless for any user but not the admin. Is it a restriction?
Re: SSH - PasswordLess
Posted: Wed Aug 24, 2022 7:15 pm
by isscbta
You can't create another admin account with no password, because there is already one created through the myVesta installation. And that account has to have a password to be able to login into that account.
As for other users, they also must have some password because that field is mandatory
Re: SSH - PasswordLess
Posted: Wed Aug 24, 2022 7:42 pm
by tienloc1
isscbta wrote: ↑Wed Aug 24, 2022 7:15 pm
You can't create another admin account with no password, because there is already one created through the myVesta installation. And that account has to have a password to be able to login into that account.
As for other users, they also must have some password because that field is mandatory
No, I need to login/exist many times when working with cmd, wp cli. So I've added the id_rsa.pub to my /.ssh/authorized_keys, but it's impossible for the default admin created through the myVesta installation.
The other accounts working fine and even the root account can log-in without adding the password, but the admin user isn't working and I'm not sure why.

Re: SSH - PasswordLess
Posted: Wed Aug 24, 2022 7:46 pm
by myVesta
check if admin has /bin/bash in /etc/passwd
Re: SSH - PasswordLess
Posted: Wed Aug 24, 2022 7:54 pm
by tienloc1
myVesta wrote: ↑Wed Aug 24, 2022 7:46 pm
check if
admin has
/bin/bash in
/etc/passwd
I checked and seems it's correctly for me.
*Need to add space to avoid the error, but no space in the passwd file.
Re: SSH - PasswordLess
Posted: Thu Aug 25, 2022 12:11 am
by myVesta
Re: SSH - PasswordLess
Posted: Thu Aug 25, 2022 6:12 am
by tienloc1
The result below:
Code: Select all
# override default of no subsystems
Subsystem sftp /usr/lib/openssh/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
Re: SSH - PasswordLess
Posted: Thu Aug 25, 2022 9:35 am
by myVesta
I have no idea why you can't SSH to admin account...
Maybe /var/log/auth.log can clarify what is going on.
Re: SSH - PasswordLess
Posted: Thu Aug 25, 2022 1:38 pm
by tienloc1
myVesta wrote: ↑Thu Aug 25, 2022 9:35 am
I have no idea why you can't SSH to admin account...
Maybe /var/log/auth.log can clarify what is going on.
I can ssh to the admin account but I don't want to add password every time when ssh (no password with SSH KEY).
My auth.log is here:
https://tienloc.notion.site/auth-log-6d ... 6333c60ad9.
Re: SSH - PasswordLess
Posted: Thu Aug 25, 2022 1:46 pm
by myVesta
Sorry, I can't read the whole log file.
Can you cut and paste here only the moment when it denied your SSH connection?