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?
SSH - PasswordLess
- isscbta
- Team Member
- Posts: 130
- Joined: Mon Jul 19, 2021 1:41 am
- Has thanked: 15 times
- Been thanked: 3 times
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
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.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
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.
I checked and seems it's correctly for me.
*Need to add space to avoid the error, but no space in the passwd file.admin: x : 1000 : 1000:[email protected]:/home/admin:/bin/bash
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
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.