Avatar of duncanb7
 asked on

SSH access on CentOS Linux

Dear Experts,

I just switch to my share server to VPS server on one hosting company.
Now I got root password and access right.

When I connect to root 's SSH access through Putty , it is okay and logged into the root's directory.

When I connect to my user account trhough Putty , it failed and echo out message as
such as
"Shell access is not enabled on your account!
If you need shell access please contact support"

What I should change on SSH in order to enable my shell access ?

now my root login is  on VP server

my old user account in shared-server

How to enable my SSH access from shared-server to VPS server
Now I don't use any Cpanel anymore since now it needs to pay fee on VPS

Please advise
PHPApache Web ServerLinux

Avatar of undefined
Last Comment
Jan Bacher

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

I could not go to my account except

when I type at root directory su - duncan it also echo out the warning message
"Shell access is not enabled on your account!
If you need shell access please contact support"

Are you the hosting provider; because you would have to obtain this information from them about the VPS setup email and server information.

No , I just have one account of shared-server in one hosting  company and now
I swithced to VPS account in the same hosting company. Since the VPS account is unmanaged and no Cpanel provide, I need to do some Linux system command to change some system setting
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy

You will need to contact your web hosting provider about this first or try to authenticate to the share account, that you have access to, and see if you can enable shh.  Look for something that pertain to web hosting or hosting and try to find settings; there should be something that allows you to enable ssh.

Just change the /etc/passwd file

for username duncan

duncan:x:500:500::/home/duncan:/bin/bash  from

the issue is fixed
Jan Bacher

The command chsh does just that: change shell.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.