Professional Web Applications Themes

sshd listening on more than one port. - FreeBSD

On Thu, Mar 31, 2005 at 11:29:29AM +0100, Mick Walker wrote:  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 ...

  1. #1

    Default Re: sshd listening on more than one port.

    On Thu, Mar 31, 2005 at 11:29:29AM +0100, Mick Walker wrote: 

    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 / \

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (FreeBSD)

    iD8DBQFCTBAghvzwOpChvo8RAmKZAKCMUWKSGXcWyK+DTts1EG XhntiDrgCg2ZNB
    n1R2nAhoDHG5s4J5yTynzBc=
    =m3LO
    -----END PGP SIGNATURE-----

    Daniel Guest

  2. #2

    Default RE: sshd listening on more than one port.

    > Hello, 

    Yes, simply add additional Port lines to your sshd_config file and kill -HUP your sshd server.

    For example, my ssh server listens on 22 & 23 because of the way I handle incoming NAT connections, so I have:

    Port 22
    Port 23

    in my config file.

    Regards,
    Seth Henry
    jshamlet@comcast.net Guest

  3. #3

    Default Re: sshd listening on more than one port.

    Mick Walker wrote: 

    In /etc/rc.conf, use:

    sshd_enable="YES"
    sshd_flags="-p 22 -p 1234"

    and add more, if you like.
    Then restart the ssh daemon.

    Rob.



    __________________________________
    Yahoo! Messenger
    Show us what our next emoticon should look like. Join the fun.
    http://www.advision.webevents./emoticontest
    Rob Guest

Similar Threads

  1. Can you see what port(s) FMS is listening on?
    By sparky1962 in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: October 5th, 09:07 PM
  2. sshd on nonstandard port : how to configure ?
    By Ronald in forum Mac Networking
    Replies: 2
    Last Post: May 7th, 06:13 AM
  3. 1 Port, listening and connecting, how to?
    By Marcia in forum UNIX Programming
    Replies: 3
    Last Post: February 10th, 05:14 PM
  4. Replies: 1
    Last Post: July 8th, 08:00 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139