Coder Social home page Coder Social logo

Comments (5)

iyesin avatar iyesin commented on May 3, 2024 3

@imthenachoman,
As person, operating 100s of servers in production, I would say, that switching default ssh port from 22 to something high-port (1024+) have huge impact. The frequency of password-bruteforcing-attempts (all unsuccessful due to disabled password auth) drops from tens-per-second to singles per minute.
Port-knocking or web-knocking reducing this numbers to zero, of course.

from how-to-secure-a-linux-server.

sbrl avatar sbrl commented on May 3, 2024 2

@iyesin: Indeed - but it's worth noting that things like moving the ssh port is perhaps best presented as a way to reduce computational load and annoying messages /var/log/auth.log, rather than a real security measure.

from how-to-secure-a-linux-server.

imthenachoman avatar imthenachoman commented on May 3, 2024

If they scan for open ports they will still find it open. I don't know how much value there is in hiding the port. Something like a port knocker might help.

from how-to-secure-a-linux-server.

initiateit avatar initiateit commented on May 3, 2024

@iyesin If you specify a port below 1024 you prevent unprivileged processes from binding to it and impersonating it.

from how-to-secure-a-linux-server.

hellresistor avatar hellresistor commented on May 3, 2024

I can sure, with own exp, using ssh default port (22), on some VPS's you will automatic get bots bruteforcing the 22 port .... Same way if you want use default port. disable passwords authentication and set a ssh keyfile ;)

https://gist.github.com/hellresistor/108d965b32a907558ed101e9a0f4326c

from how-to-secure-a-linux-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.