Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Cannot login ssh using new user account

General questions about VestaCP
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
lacroix05
Posts: 5
Joined: Wed Dec 12, 2018 12:03 pm

Os: Debian 8x
Web: apache + nginx
Cannot login ssh using new user account
  • Quote

Post by lacroix05 » Wed Dec 12, 2018 12:19 pm

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.
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: Cannot login ssh using new user account
  • Quote

Post by dreiggy » Wed Dec 12, 2018 8:01 pm

Hi,
try check bash shell is enabled for user:

Code: Select all

# grep USER /etc/passwd
The user should have "/bin/bash" or "/bin/sh" shell.

Something like this:

Code: Select all

USER:x:1002:1002:[email protected]:/home/USER:/bin/sh
Top

lacroix05
Posts: 5
Joined: Wed Dec 12, 2018 12:03 pm

Os: Debian 8x
Web: apache + nginx
Re: Cannot login ssh using new user account
  • Quote

Post by lacroix05 » Thu Dec 13, 2018 1:12 am

lets say the new username is daddy

after do this command :

Code: Select all

# grep daddy /etc/passwd
i got :

Code: Select all

daddy:x:1001:1001:[email protected]:/home/daddy:/sbin/nologin
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?
Top

misterpat
Posts: 16
Joined: Wed Jun 15, 2016 12:25 am

Os: CentOS 6x
Web: apache
Re: Cannot login ssh using new user account
  • Quote

Post by misterpat » Thu Dec 13, 2018 1:22 am

Edit the user directly.
Top

lacroix05
Posts: 5
Joined: Wed Dec 12, 2018 12:03 pm

Os: Debian 8x
Web: apache + nginx
Re: Cannot login ssh using new user account
  • Quote

Post by lacroix05 » Thu Dec 13, 2018 1:59 am

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.
Top

lacroix05
Posts: 5
Joined: Wed Dec 12, 2018 12:03 pm

Os: Debian 8x
Web: apache + nginx
Re: Cannot login ssh using new user account
  • Quote

Post by lacroix05 » Fri Dec 14, 2018 2:31 am

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.
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: Cannot login ssh using new user account
  • Quote

Post by dreiggy » Wed Dec 19, 2018 6:34 pm

lacroix05 wrote: ↑
Fri Dec 14, 2018 2:31 am
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.
You could try manually set bash in passwd file.
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password