We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Cannot login ssh using new user account
Cannot login ssh using new user account
I am trying to create new user with package other then default (gainsboro), so the nameserver will be different with the default admin account.
the new user work, the child-ns work i can access the website, i can login vestacp with new user account, i can login ftp with new user account, but what i cannot do is ssh to new user. when i ssh with putty using the new user account ( i use username and password that i use to login vestacp ), i always get "access denied".
what i already do is changing gainsboro package settings, ssh-access to bash from no-login. but i can still cannot access ssh to new users.
i use debian 9 64 bit for the OS.
or maybe i have wrong perception to how ssh work? i am newbie in all this, so please guide me.
the new user work, the child-ns work i can access the website, i can login vestacp with new user account, i can login ftp with new user account, but what i cannot do is ssh to new user. when i ssh with putty using the new user account ( i use username and password that i use to login vestacp ), i always get "access denied".
what i already do is changing gainsboro package settings, ssh-access to bash from no-login. but i can still cannot access ssh to new users.
i use debian 9 64 bit for the OS.
or maybe i have wrong perception to how ssh work? i am newbie in all this, so please guide me.
Re: Cannot login ssh using new user account
Hi,
try check bash shell is enabled for user:
The user should have "/bin/bash" or "/bin/sh" shell.
Something like this:
try check bash shell is enabled for user:
Code: Select all
# grep USER /etc/passwd
Something like this:
Code: Select all
USER:x:1002:1002:[email protected]:/home/USER:/bin/sh
Re: Cannot login ssh using new user account
lets say the new username is daddy
after do this command :
i got :
it's still nologin from that command? but i already change the gainsboro package to ssh bash.
can you tell me how to change it manually?
after do this command :
Code: Select all
# grep daddy /etc/passwd
Code: Select all
daddy:x:1001:1001:[email protected]:/home/daddy:/sbin/nologin
can you tell me how to change it manually?
Re: Cannot login ssh using new user account
Edit the user directly.
Re: Cannot login ssh using new user account
image : https://imgur.com/g18LaTs
it's definitely already bash in user settings. it's also already bash in package. is this debian bug? because i heard vestacp is mainly for centos.
it's definitely already bash in user settings. it's also already bash in package. is this debian bug? because i heard vestacp is mainly for centos.
Re: Cannot login ssh using new user account
after all this i choose the most simple solution. reinstall server, reinstall vestacp, then configure the ssh login to bash from the start before creating the user. now it's already working.