Skip to main content
mehdi_ouazaa
New Member
Jul 26, 2018 7:55 AM UTC
Solved

Multiple ssh auth with different username

Hi all,

 

On systems events I discovered that there is a lot of ssh auth failed attempts with different usernames and from different ips from all over the world. for me it smells like some one/script is trying to access my fortgate.

 

Could you please advice on better actions to take

    emnoc
    emnocAnswer
    New Member
    Jul 26, 2018 12:08 PM UTC

    you have a few items to lookat

     

    ssh-pub-key ( just build a strong password  but enforce the ssh pub key )

    http://socpuppet.blogspot...ess-login-fortios.html

     

    GEOIP block the  external interface ( e.g I use a local-in policy and block any thing outside of the USA )

    https://forum.fortinet.com/tm.aspx?m=136899

     

    change the SSH ports

    http://socpuppet.blogspot.com/2014/12/hardening-your-unix-ssh-server-access.html

     

    disable  ssh on the wan and force your admins to  sshin and then use  allowaccess ssh in the ssl.root interface

    http://socpuppet.blogspot.com/2015/03/sslvpn-sslroot-management-access.html

     

    Or use a MFA access for any admins, this would be the best along with the aboves.

     

     

    Ken

     

    6 replies

    mhe
    Explorer II
    Jul 26, 2018 8:08 AM UTC

    Why don't you disable SSH on the external interface??

    xsilver_FTNT
    Staff
    Staff
    Jul 26, 2018 8:36 AM UTC

    If it's not super critical then disable SSH from outside as mhe mentioned.

    If not possible then change default port to some other less obvious/predictable.

    You can also utilize trusted hosts so SSH will not respond to anyone outside allowed ranges/IPs.

     

    And obviously, have strong passwords for admins.

    emnoc
    emnocAnswer
    New Member
    Jul 26, 2018 12:08 PM UTC

    you have a few items to lookat

     

    ssh-pub-key ( just build a strong password  but enforce the ssh pub key )

    http://socpuppet.blogspot...ess-login-fortios.html

     

    GEOIP block the  external interface ( e.g I use a local-in policy and block any thing outside of the USA )

    https://forum.fortinet.com/tm.aspx?m=136899

     

    change the SSH ports

    http://socpuppet.blogspot.com/2014/12/hardening-your-unix-ssh-server-access.html

     

    disable  ssh on the wan and force your admins to  sshin and then use  allowaccess ssh in the ssl.root interface

    http://socpuppet.blogspot.com/2015/03/sslvpn-sslroot-management-access.html

     

    Or use a MFA access for any admins, this would be the best along with the aboves.

     

     

    Ken

     

    mehdi_ouazaa
    New Member
    Jul 27, 2018 11:40 AM UTC

    Thank you guys,

     

    I will think to all of this and tell you what I've done

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT