Learn about Centmin Mod LEMP Stack today
Register Now

slow ssh

Discussion in 'Other Centmin Mod Installed software' started by Oxide, Dec 20, 2016.

  1. Oxide

    Oxide Active Member

    502
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    11:55 AM
    the ssh is very slow first time i connect.. after it loads the last login it can take up to a minute sometimes.

    i suspect it's the motd, that checks updates and what not - how can i disable these?
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:55 AM
    Nginx 1.13.x
    MariaDB 5.5
  3. Oxide

    Oxide Active Member

    502
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    11:55 AM
    i think its only slow for those requests its makign there, not any else.. any way i can debug?

    Hosted by HarryLafranc (Roubaix) [0.72 km]: 1.476 ms
    Testing download speed................................................................................
    Download: 230.11 Mbit/s
    Testing upload speed....................................................................................................
    Upload: 433.22 Mbit/s
     
  4. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:55 AM
    Nginx 1.13.x
    MariaDB 5.5
    try
    Code (Text):
    yum clean all
    

    then try ssh login again
     
  5. Oxide

    Oxide Active Member

    502
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    11:55 AM
    still VERY slow whatever its doing after last login.. and after
    * Community Forums Centmin Mod Community [ << Register ]
     
  6. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:55 AM
    Nginx 1.13.x
    MariaDB 5.5
  7. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:55 AM
    Nginx 1.13.x
    MariaDB 5.5
    also manually time run the kernel check script at tools/kernelcheck.sh will also tell you how slow it is
    Code (Text):
    cd /usr/local/src/centminmod
    time tools/kernelcheck.sh

    Example
    Code (Text):
    time tools/kernelcheck.sh
    
    ===============================================================================
     system kernel is up to date, nothing to do
    ===============================================================================
    
    
    real    0m3.234s
    user    0m2.421s
    sys     0m0.180s

    ~3.234s to run for me
     
    Last edited: Dec 20, 2016
  8. Oxide

    Oxide Active Member

    502
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    11:55 AM
    Code:
    ===============================================================================
     system kernel is up to date, nothing to do
    ===============================================================================
    
    
    real    0m1.897s
    user    0m1.481s
    sys     0m0.148s
    
     
  9. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:55 AM
    Nginx 1.13.x
    MariaDB 5.5
    you mean /usr/local/src/centminmod/tools/kernelcheck.sh ?
     
  10. Oxide

    Oxide Active Member

    502
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    11:55 AM
    yeh i removed my reply, but read the one above urs - the results seems fast
     
    • Like Like x 1
  11. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:55 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah looks fast so maybe not kernel check that is slow ?

    you can try manually running the motd script triggered at ssh log in too
    Code (Text):
    time /usr/local/src/centminmod/config/motd/dmotd.sh
    
     
  12. Oxide

    Oxide Active Member

    502
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    11:55 AM
    that was also very fast lol


    real 0m0.865s
    user 0m0.108s
    sys 0m0.192
     
  13. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:55 AM
    Nginx 1.13.x
    MariaDB 5.5
    so looks fast to me notice another user @nikolaikapustin reported similar issue at Centminmod stack preventing the ssh shell from loading immediately | Centmin Mod Community

     
  14. Oxide

    Oxide Active Member

    502
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    11:55 AM
  15. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:55 AM
    Nginx 1.13.x
    MariaDB 5.5
    5.867s looks fast to me
    Code (Text):
    Total Git & Nginx Check Time: 5.866512904 seconds

    if you run it a few times it will vary though
     
  16. Oxide

    Oxide Active Member

    502
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    11:55 AM
    but that's 5 seconds delay to login to ssh? that's a lot.
     
  17. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:55 AM
    Nginx 1.13.x
    MariaDB 5.5
    not really if you want potential security and software update alerts for kernel and nginx and centmin mod updates otherwise 99% of centmin mod users (many of which don't frequent the forums or site) will not know there are updates available !
     
  18. Oxide

    Oxide Active Member

    502
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    11:55 AM
    maybe true, but i use sftp only so it takes forever xD
     
  19. Oxide

    Oxide Active Member

    502
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    11:55 AM
    Any idea why it's taking so slow now? I have other servers, and even this one didn't use to be this slow before. Something new that was updated in centmin? I do regular updates.
     
  20. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:55 AM
    Nginx 1.13.x
    MariaDB 5.5
    try to do a fresh Centmin Mod code replacement by wiping /usr/local/src/centminmod as outlined similar to update guide here for older than .07 releases.

    replace branchname with branch you want either 123.08stable or 123.09beta01
    Code (Text):
    branchname=123.09beta01
    cd /usr/local/src
    rm -rf centminmod*
    git clone -b ${branchname} --depth=1 https://github.com/centminmod/centminmod.git centminmod
    cd centminmod
    ./centmin.sh