Just stop ssh when u dont want it running..
sudo service sshd stop
start it again when needed
sudo service sshd start
Simple thats what i do
Just stop ssh when u dont want it running..
sudo service sshd stop
start it again when needed
sudo service sshd start
Simple thats what i do
I quickly ran through some links that HiImTye added to your thread and I have one question....since ssh can be ran from virtually any port and not just port 22, how to defend yourself from the matter of an "attacker" trying to connect using different port, and for instance if he uses port 8080 which is http port, does it disable me a usage of http or is my http data traffic rerouted to some other port?
One more question...can you limit computers that can connect to your host, meaning can you set up your sshd service on your ssh host to just accept data or being connected from certain computer by filtering them somehow, by mac address or other host's name or does all that require setting up a SSH server to manage all that?
Thank you community, stay brutal
Avoid the Gates of Hell. Use Linux.
I'm not sure I understand your first question. Someone trying to connect to an SSH server via port 8080 will only be able to connect if the server is listening on that port. If you want to obfuscate your SSH port, choose some arbitrary high port like 32537. Any number in the range 1024-65534 is appropriate.
The answer to your second question is to use firewalling rules to limit access. Do a search for "iptables" to get some examples.
If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.
Blog · Linode System Administration Guides · Android Apps for Ubuntu Users
Ok thanks for the answer, so is that the most reliable method of blocking someone from accessing my machine?
My regards.
As I said, you need to use iptables to create firewalling rules.
If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.
Blog · Linode System Administration Guides · Android Apps for Ubuntu Users
Hipptambius, that method you gave me, sounds pretty awesome. thanks
Bookmarks