Enable/ Disable OpenSSH from WHM ?

aitn

Member
Mar 14, 2002
13
0
301
Hi..

How I can Enable or Disable OpenSSH for a spesifc site or the whole site ?


And How I can enable/disable the TELNET to spesific site from the console ?


Please HeLP
 

awsol

Well-Known Member
Feb 8, 2002
578
0
316
Boston MA
At the shell type

pico /etc/passwd

You will see lines with :/bin/bash at the end. Those are users with shell access. To change them to no access do this.

Change :/bin/bash to :/usr/local/cpanel/bin/noshell and this will deny their login.
 

powerhouse

Well-Known Member
Nov 5, 2001
93
0
306
Ok
Or login to Shell and type this:

chsh username
it will prompt you for the new shell, type this:

to add shell access to a user:
/bin/bash

To remove shell access:
/usr/local/cpanel/bin/noshell

hit enter, and poof....
Done
:p