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.

permission SSH

Discussion in 'General Discussion' started by bmbraga, Aug 11, 2004.

  1. bmbraga

    bmbraga Active Member

    Joined:
    Mar 3, 2004
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    What I procced to blocked access of IP´s no permission SSH and what give one IP to SSH accsess ?
     
  2. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    That question makes no sense to me. Please rephrase it.
     
  3. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Seems like they are asking how to limit SSH access to a single IP. Ours is setup using TCPWrappers using hosts.allow and hosts.deny files
     
  4. bmbraga

    bmbraga Active Member

    Joined:
    Mar 3, 2004
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    To block the ssh to have just accesses for an ip or ip grade.
     
  5. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    That sounds like a good way to do it. :)

    Add this line to your /etc/hosts.deny file:

    sshd:ALL

    then add this line to your /etc/hosts.allow file

    sshd: <THE IP YOU WANT TO ALLOW>

    (note the space between sshd: and the IP)
     
  6. pili

    pili Member

    Joined:
    Jun 21, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    IP range

    And how could I specify an IP range instead of a single address on the hosts.allow file?
    For example, 200.13.45. 0 to 255

    Thank you!
     
  7. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  8. pili

    pili Member

    Joined:
    Jun 21, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Thank you!

    Great guide, thank you.
     
Loading...

Share This Page