The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Limit SSH Access

Discussion in 'General Discussion' started by cosmin, Nov 7, 2002.

  1. cosmin

    cosmin Well-Known Member

    Joined:
    Feb 6, 2002
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucuresti
    How can I limit the ssh accesss for all user?

    Thanks!
     
  2. cosmin

    cosmin Well-Known Member

    Joined:
    Feb 6, 2002
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucuresti
    I want to remove the commands like: cd - dir - ls etc etc

    And how can I do the same in mc?
     
  3. mikerayner

    mikerayner Well-Known Member

    Joined:
    Apr 10, 2002
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    [quote:2e95d26a34][i:2e95d26a34]Originally posted by cosmin[/i:2e95d26a34]

    I want to remove the commands like: cd - dir - ls etc etc

    And how can I do the same in mc?[/quote:2e95d26a34]
    by restricting ls, cd, mkdir,and etc... why do you want to offer SSH?

    without those commands SSH is not required nor useful.
    Simply disable SSH access to your clients
     
  4. sasha

    sasha Member

    Joined:
    Nov 5, 2002
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    If you call bash as rbash then it becomes restricted shell.

    Check out man bash for details.
     
  5. cosmin

    cosmin Well-Known Member

    Joined:
    Feb 6, 2002
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucuresti
    I want to offer and limit SSH access.

    Don't suggest me &don't offer ssh access&

    Thx!
     
  6. netarus

    netarus Well-Known Member

    Joined:
    Oct 27, 2002
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    Is there a way to restrict a user to only their home directory for SSH? This way, they can't go around a browse other people's directories.
     
  7. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    I am also looking for the answer to this question... how do I restrict SSH so that users are kept inside their home directory?

    Is the solution to enable Jailshell ?

    Thanks for any help you can provide to this newbie! :)

    cPanel.net Support Ticket Number:
     
    #7 sneader, Sep 28, 2003
    Last edited: Sep 28, 2003
  8. darksoul

    darksoul Active Member

    Joined:
    Feb 20, 2003
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    yes, however this is not retroactive, so you have
    to manually change it for the existing users.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page