Learn about Centmin Mod LEMP Stack today
Become a Member

OVH New Server installed with Centminmod, SSH access suddenly stops working :/

Discussion in 'Dedicated server hosting' started by RoldanLT, Aug 17, 2016.

  1. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:31 AM
    1.11
    10.2
    I have this server setup just last week, 9 days ago (was working fine for several days).
    But SSH on custom port suddenly stops working :(.
    Just return "Connection timed out" error on console.

    I can ping the server IP fine
    I can visit the IP and all it's website hosted fine
    I can connect to FTP account I manually created fine.

    Only SSH stops working.

    Any advice on what to do please?
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  3. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:31 AM
    1.11
    10.2
    9 or 10 days ago.
    Most probably 7 days ago or 3 days after I setup the server.
    I change it via centmin menu, and change it after I install centminmod.
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    fyi what is output for these commands
    Code (Text):
    awk '/^Port / {print $2}' /etc/ssh/sshd_config
    netstat -plant | grep sshd | grep ':22'
    DETECTED_PORT=$(awk '/^Port / {print $2}' /etc/ssh/sshd_config)
    netstat -plant | grep sshd | grep ":$DETECTED_PORT"
    
     
  5. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:31 AM
    1.11
    10.2
  6. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:31 AM
    1.11
    10.2
    I can't connect to the server :(.
     
  7. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:31 AM
    1.11
    10.2
    If only this is DigitalOcean or Linode, I can run that fine on site their control panel.
    But this is OVH :(.
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    i believe you can pay or rent the IPMI KVM out of bandwidth console at OVH ? or just reinstall fresh again
     
  9. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:31 AM
    1.11
    10.2
    Ow, I have 5 sites hosted on that server running with live traffic :(.
    I can't re-install it :(.
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    contact OVH support :)
     
  11. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    and KVM IP: a module for your dedicated server- OVH

     
    • Like Like x 1
  12. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    also fyi when you run centmin.sh menu option 16 to change sshd port see message and hint for such issues
    Code (Text):
    *************************************
    To check to see if you can access your server via the new port
    keep this existing SSH2 connection open, and start a new SSH2
    connection to this server connecting via the new SSH2 port
    if you can connect, then it's working.
    
    If you can't connect, using your existing SSH2 logged in
    connection, edit and check /etc/csf/csf.conf and your iptables
    /etc/sysconfig/iptables and service iptables status
    making sure the new port number you specified is correctly set
    *************************************************
     
    • Like Like x 1
  13. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:31 AM
    1.11
    10.2
    It's correctly set.
    I successfully connect to new custom port fine for 3-4 days.
     
  14. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    on in that case not related i don't think, something else is causing your problem

    OVH support ;)
     
  15. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:31 AM
    1.11
    10.2
    I can use this?
    upload_2016-8-17_13-0-19.png

    upload_2016-8-17_13-1-2.png


    Or that is different?
     
  16. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    yup believe that is it but double check with OVH support as i never used OVH only SoYouStart and that KVM IP is optional at additional cost !

    upload_2016-8-17_15-5-59.png
     
  17. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:31 AM
    Nginx 1.13.x
    MariaDB 5.5
  18. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:31 AM
    Nginx 1.13.x
    MariaDB 5.5
  19. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:31 AM
    1.11
    10.2
    I just don't know what command I run the correct command, I just want to run csf -x.
    But it doesn't let me type that command on this window:
     
  20. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    launch console form browser or java .. contact OVH support