Re: sshd listening on more than one port.

From: Daniel Bye (freebsd-questions_at_slightlystrange.org)
Date: 03/31/05

  • Next message: Erik Trulsson: "Re: 4.11-STABLE"
    Date: Thu, 31 Mar 2005 15:58:40 +0100
    To: freebsd-questions@freebsd.org
    
    
    

    On Thu, Mar 31, 2005 at 11:29:29AM +0100, Mick Walker wrote:
    > Hello,
    >
    > I am wanting to know if it is possible to enabled the sshd to listen on
    > more than one port, without having to spawn another instance of the
    > server itself.
    > If it is possible does anyone have any idea how I could accomplish this.

    Yes, it is possible - this is from man sshd_config:

         Port Specifies the port number that sshd listens on. The default is
                 22. Multiple options of this type are permitted. See also
                 ListenAddress.

    I have just tested it - your sshd_config needs to include something like
    this:

    Port 22
    Port 2222

    etc.

    It works just fine:

    # sockstat -4l | grep sshd
    root sshd 38948 3 tcp4 *:2222 *:*
    root sshd 38948 4 tcp4 *:22 *:*

    HTH

    Dan

    -- 
    Daniel Bye
    PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
    PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
                                                                         _
                                                  ASCII ribbon campaign ( )
                                             - against HTML, vCards and  X
                                    - proprietary attachments in e-mail / \
    
    



  • Next message: Erik Trulsson: "Re: 4.11-STABLE"

    Relevant Pages

    • sshd listening on more than one port.
      ... I am wanting to know if it is possible to enabled the sshd to listen on ... more than one port, without having to spawn another instance of the ...
      (freebsd-questions)
    • How did this happen?
      ... May 12 06:50:43 localhost sshd: Failed password for illegal user ... cgi from 212.93.149.205 port 2265 ... Starting sshd: ...
      (comp.os.linux.security)
    • Re: bypassing employers proxy to surf anonymously
      ... port 443, so it's harder to distinguish from an https server. ... through the remote sshd. ... You have an option to go with a managed service or an enterprise software. ...
      (Pen-Test)
    • RE: possible ssh hack
      ... What version of SSHD were you running, ... Apache and we can help you out. ... Subject: possible ssh hack ... port 4207 ...
      (Incidents)
    • Re: Possible New Security Tool For FreeBSD, Need Your Help.
      ... We just want to hide the sshd port until we need it. ... >> the Internet where would they put the sniffer? ... Do a traceroute between the host you're ...
      (FreeBSD-Security)