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 Failed

Discussion in 'General Discussion' started by mickc1303, Jan 31, 2005.

  1. mickc1303

    mickc1303 Member

    Joined:
    Jan 31, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I have managed to kill ssh on my box somehow and cannot get it to restart via ssh.

    I have noticed some threads which say I can add a user to the wheel group and use an 'expect script'

    But can someone explain this in further details or point me to somewhere that does?

    Thanks
     
  2. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    Have you tried to force install the ssh rpms via whm rpm installer?

    That may work, if it doesn't then I could knock one up or you could hire someone to do it for you, there are people who provide commercial support services on these boards.
    (I don't do commercial support, I work for an ISP and visit here in my spare time.)

    Alternatively, have the dc fix the problem at the console.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I'm one of the nasty commercial support people, if you need help ;) As DigitalN said, your datacentre is usually the place to go if you screw up SSH. However, if they don't offer support for such things (and will only do an OS restore) then the next problem is determining what exactly the problems is.

    What changes had you made before it died and wouldn't come back?
     
  4. mickc1303

    mickc1303 Member

    Joined:
    Jan 31, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hi I tried an forced rpm install with no luck

    I was experimenting with squid and that when the error occured.

    Also I don't know if adding ALL:ALL to my deny.conf has an effect on it :(

    EDIT: The DC has fixed the problem and I now have access to SSH, although I would still like to know for reference purposes how I could use an except script to fix problems.
     
    #4 mickc1303, Feb 1, 2005
    Last edited: Feb 1, 2005
  5. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    I'm glad that you got that resolved.

    If you type the following at the command prompt

    # man expect

    and read up on expect scripting, I'm sure you will be able to figure it out for when it's needed again. :)

    Alternative is to hire someone like Chirpy to do it for you if you really want the scripts now and don't want to learn yourself.
     
Loading...

Share This Page