Join the community today
Become a Member

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

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

  1. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    12:59 PM
    Mainline
    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

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    12:59 PM
    Mainline
    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

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    12:59 PM
    Mainline
    10.2
  6. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    12:59 PM
    Mainline
    10.2
    I can't connect to the server :(.
     
  7. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    12:59 PM
    Mainline
    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

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    i believe you can pay or rent the IPMI KVM out of bandwidth console at OVH ? or just reinstall fresh again
     
  9. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    12:59 PM
    Mainline
    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

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    contact OVH support :)
     
  11. eva2000

    eva2000 Administrator Staff Member

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    and KVM IP: a module for your dedicated server- OVH

     
  12. eva2000

    eva2000 Administrator Staff Member

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
    *************************************************
     
  13. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    12:59 PM
    Mainline
    10.2
    It's correctly set.
    I successfully connect to new custom port fine for 3-4 days.
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    on in that case not related i don't think, something else is causing your problem

    OVH support ;)
     
  15. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    12:59 PM
    Mainline
    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

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  18. eva2000

    eva2000 Administrator Staff Member

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  19. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    12:59 PM
    Mainline
    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

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    launch console form browser or java .. contact OVH support