Skip to content

Instantly share code, notes, and snippets.

@shsm385
Created August 14, 2017 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shsm385/0354070e20d9065606ba966b4c63b76e to your computer and use it in GitHub Desktop.
Save shsm385/0354070e20d9065606ba966b4c63b76e to your computer and use it in GitHub Desktop.
ポート番号の設定
# 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