Created
August 14, 2017 15:27
-
-
Save shsm385/0354070e20d9065606ba966b4c63b76e to your computer and use it in GitHub Desktop.
ポート番号の設定
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
# sshのコンフィグを開く | |
sudo vim /etc/ssh/sshd_config | |
# Port番号を49152〜65535の間で変更 | |
Port 22 → Port XXXXX | |
# sshを再起動 | |
sudo /etc/init.d/ssh restart | |
# sshで接続する | |
ssh ユーザ名@IPアドレス -p ポート番号 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment