{"id":1697,"date":"2018-11-28T10:53:51","date_gmt":"2018-11-28T17:53:51","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1697"},"modified":"2018-11-28T10:54:13","modified_gmt":"2018-11-28T17:54:13","slug":"ssh-on-different-ports-on-different-interfaces-linux","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1697","title":{"rendered":"Ssh on different ports on different interfaces (linux)."},"content":{"rendered":"<p>To have sshd listen on a different port on two interfaces, you can configure the \/etc\/ssh\/sshd_config like so:<\/p>\n<blockquote><p>vi \/etc\/ssh\/sshd_config<br \/>\n&#8230;<br \/>\nListenAddress 10.10.10.10:22<br \/>\nListenAddress 11.11.11.11:6666<br \/>\n&#8230;<\/p><\/blockquote>\n<p>This will have sshd listening on port 22 on the interface configured with IP address 10.10.10.10 and port 6666 on the interface configured with IP address 11.11.11.11.<\/p>\n<p>Restart sshd:<\/p>\n<blockquote><p>systemctl restart sshd<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>To have sshd listen on a different port on two interfaces, you can configure the \/etc\/ssh\/sshd_config like so: vi \/etc\/ssh\/sshd_config &#8230; ListenAddress 10.10.10.10:22 ListenAddress 11.11.11.11:6666 &#8230; This will have sshd listening on port 22 on the interface configured with IP address 10.10.10.10 and port 6666 on the interface configured with IP address 11.11.11.11. Restart sshd: [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[48,478,317],"class_list":["post-1697","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-linux","tag-port","tag-ssh"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1697"}],"version-history":[{"count":2,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1697\/revisions"}],"predecessor-version":[{"id":1699,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1697\/revisions\/1699"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}