Enabling root login via ssh

Discussion in 'Site & Server Administration' started by phantomddl, May 14, 2007.

  1. #1
    i need to enable root login (i disabled it last night lol), i cannot login with another username, the window closes after logging in(tried on different computer too)
    how do i re-enable? i must edit httpd.conf, is there any other ways that i can edit it else than ssh

    p.s. control panel is plesk
     
    phantomddl, May 14, 2007 IP
  2. CodyRo

    CodyRo Peon

    Messages:
    365
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You'll need to enable it in the SSHD config.

    
    nano /etc/ssh/sshd_config
    
    Code (markup):
    Find

    
    PermitRootLogin no
    
    Code (markup):
    and replace with

    
    PermitRootLogin yes
    
    Code (markup):
    last but not least..

    
    /etc/init.d/sshd restart
    
    Code (markup):
     
    CodyRo, May 14, 2007 IP
  3. phantomddl

    phantomddl Well-Known Member

    Messages:
    2,856
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    160
    Articles:
    15
    #3
    well, i cant login ssh
     
    phantomddl, May 14, 2007 IP
  4. CodyRo

    CodyRo Peon

    Messages:
    365
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you can't login then you can't enable root login.. did you disable root login and not setup sudo or su?
     
    CodyRo, May 14, 2007 IP
  5. phantomddl

    phantomddl Well-Known Member

    Messages:
    2,856
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    160
    Articles:
    15
    #5
    oh well, i think so :D can dataserver do it if i e-mail?
     
    phantomddl, May 14, 2007 IP
  6. CodyRo

    CodyRo Peon

    Messages:
    365
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yes they should be able to enable it for you through the VPN :)
     
    CodyRo, May 14, 2007 IP
  7. randomIntellections

    randomIntellections Well-Known Member

    Messages:
    985
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    180
    #7
    do you have cpanel or webmin ? if you do you can login to it to add a normal user , add him to wheel group then login via that user and su root
     
    randomIntellections, May 14, 2007 IP
  8. phantomddl

    phantomddl Well-Known Member

    Messages:
    2,856
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    160
    Articles:
    15
    #8
    i got plesk only
     
    phantomddl, May 14, 2007 IP
  9. randomIntellections

    randomIntellections Well-Known Member

    Messages:
    985
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    180
    #9
    ok , create a new client account then grant it ssh access , login with that account and su root
     
    randomIntellections, May 14, 2007 IP
  10. phantomddl

    phantomddl Well-Known Member

    Messages:
    2,856
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    160
    Articles:
    15
    #10
    thnx for the help
     
    phantomddl, May 14, 2007 IP
  11. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Yes, I agree with random, create a plesk user and enable ssh access for it and su root user
     
    inworx, May 15, 2007 IP