Created
February 1, 2017 09:04
-
-
Save fk2000/b0c7bc93966e52ff47f484caef34aeb3 to your computer and use it in GitHub Desktop.
CentOS7でSSHのポート番号を変更する ref: http://qiita.com/fk_2000/items/019b62818e34be973227
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public (default, active) | |
interfaces: eth0 | |
sources: | |
services: dhcpv6-client ssh | |
ports: | |
masquerade: no | |
forward-ports: | |
icmp-blocks: | |
rich rules: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- # Port 22 | |
+ Port 2222 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- <port protocol="tcp" port="22"/> | |
+ <port protocol="tcp" port="2222"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public (default, active) | |
interfaces: eth0 | |
sources: | |
services: dhcpv6-client ssh-2222 | |
ports: | |
masquerade: no | |
forward-ports: | |
icmp-blocks: | |
rich rules: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment