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.

SSH IP Allow?

Discussion in 'General Discussion' started by Daemon1, Jun 18, 2004.

  1. Daemon1

    Daemon1 Well-Known Member

    Joined:
    Nov 26, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    I have a friend who is installing a script for me via SSH but he is unable to connect for some reason. The server is up fine and I can connect fine, is there some feature in Cpanel relating to the firewall to allow/disallow IPs to connect via SSH? If so where abouts is this edited, thanks.
     
  2. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    Can he access the server at all? Maybe he was blocked in the firewall.

    iptables -L |grep IP

    You might try flushing your firewall to test that.
     
  3. Daemon1

    Daemon1 Well-Known Member

    Joined:
    Nov 26, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    I run that command as u suggested and it didnt appear to do anything. My friend can view the server via http fine, just cant connect via SSH. There are no IPs in the banned IP list so that's why I thought it was a little odd...
     
  4. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    What do you get with iptables -L ?
    Try stopping iptables by doing
    /etc/init.d/iptables stop
    Check SSH access. Any success?
     
  5. Daemon1

    Daemon1 Well-Known Member

    Joined:
    Nov 26, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    Doing iptables -L gave me a whole list of stuff :

    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    acctboth all -- anywhere anywhere

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    acctboth all -- anywhere anywhere

    And then it just has a whole bunch of tcp entries and my hostname etc. I have to wait until my friend is back online to test if the login now works, but is what I am seeing normal? Should I still stop the iptable service? What does this actually do, and will I need to start it again for any reason? Thanks for your help.
     
  6. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The output from iptables -L looks like a default install. If you have any rules that have been added you should see them in /etc/sysconfig/iptables.
    You can restart iptables as it is unlikely that is your problem.
    Assume you have enabled SSH in whatever account your friend is trying to access Under Account Functions >>Manage Shell Access in WHM?
     
    #6 sawbuck, Jun 18, 2004
    Last edited: Jun 18, 2004
  7. Daemon1

    Daemon1 Well-Known Member

    Joined:
    Nov 26, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    Yes i havent messed around with anything to do with the iptables, so it would be default. And yes of course SSH is enabled, but it appears my friend cant connect to FTP or anything either! No IP bans are inplace, and I even contacted my provider to make sure they havent got any bans inplace on the network itself that would cause it! I have no idea why my friend is unable to view the server at all!
     
  8. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Sent you a PM.
     
Loading...

Share This Page