Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: how to ensure that nobody will connect on my comp via ssh?

  1. #11
    Join Date
    Jun 2013
    Beans
    5

    Re: how to ensure that nobody will connect on my comp via ssh?

    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

  2. #12
    Join Date
    Jan 2013
    Location
    Disclosed location
    Beans
    75
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: how to ensure that nobody will connect on my comp via ssh?

    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.

  3. #13
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: how to ensure that nobody will connect on my comp via ssh?

    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

  4. #14
    Join Date
    Jan 2013
    Location
    Disclosed location
    Beans
    75
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: how to ensure that nobody will connect on my comp via ssh?

    Ok thanks for the answer, so is that the most reliable method of blocking someone from accessing my machine?

    My regards.

  5. #15
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: how to ensure that nobody will connect on my comp via ssh?

    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

  6. #16
    Join Date
    Apr 2013
    Beans
    33

    Re: how to ensure that nobody will connect on my comp via ssh?

    Hipptambius, that method you gave me, sounds pretty awesome. thanks

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •