Find the answer to your Linux question:
Results 1 to 5 of 5
hey guys i have this small problem i disabled ssh and kept ssh2 runing only on port 2222 but still if i ssh on port 22 i get access can ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2003
    Posts
    84

    ssh2 and port 22


    hey guys
    i have this small problem
    i disabled ssh and kept ssh2 runing only on port 2222 but still if i ssh on port 22 i get access
    can u tell me how to close port 22 pleas??

    thank you

    -Dewey-

  2. #2
    Linux Newbie
    Join Date
    Apr 2003
    Location
    UK, Manchester
    Posts
    147
    Specify the port on which you want it to run, set it in the /etc/ssh/sshd_config.

    Port 2222

    Then restart the daemon either via the startup script or HUP the pid.

    Why do you want to run it on another port ?
    If it is to 'hide' that ssh is running it wont work.

  3. #3
    Just Joined!
    Join Date
    Mar 2003
    Posts
    84
    i already did that but i can still ssh on port 22 and i don't want that
    i hop i made myself clear
    thanks for ur help dude

    -Dewey-

  4. #4
    Linux Newbie
    Join Date
    Apr 2003
    Location
    UK, Manchester
    Posts
    147
    Have a look through the sshd_config file and check that you only have one port set to use.

  5. #5
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    If you cant work it out, just block port 22 with an IPTABLES rule.

Posting Permissions

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