ユーザ用ツール

サイト用ツール


ubuntu-server-10-04:sshd_setting

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
ubuntu-server-10-04:sshd_setting [2015/01/03 19:25] – [ログイン用公開鍵の設置] adminubuntu-server-10-04:sshd_setting [2015/01/03 19:37] (現在) – 以前のリビジョンを復元 (2010/07/23 00:41) admin
行 10: 行 10:
  
  
-SSHの設定ファイルは /etc/ssh/sshd_config にある。とりあえずコピーしてオリジナルを保存しておく。+SSHDの設定ファイルは /etc/ssh/sshd_config にある。とりあえずコピーしてオリジナルを保存しておく。
  
 <code> <code>
 $ cd /etc/ssh/ $ cd /etc/ssh/
-$ sudo cp ./sshd_config ~/backup/etc/ssh/sshd_config.original+$ sudo cp ./sshd_config ./sshd_config.original
 </code> </code>
  
行 38: 行 38:
  
 <code> <code>
-$ diff ~/backup/etc/ssh/sshd_config.original /etc/ssh/sshd_config  +$ diff /etc/ssh/sshd_config.original /etc/ssh/sshd_config 
-5a6+5c5,6 
 +< Port 22 
 +--- 
 +> #Port 22
 > Port 5555 > Port 5555
-28c29,30 +26c27,28 
-< PermitRootLogin without-password+< PermitRootLogin yes
 --- ---
-> #PermitRootLogin without-password+> #PermitRootLogin yes
 > PermitRootLogin no > PermitRootLogin no
-52a55+50a53
 > PasswordAuthentication no > PasswordAuthentication no
-88a92,99 +86a90,100 
->  +
->  +
-> # Added by admin begin+> ##### ADDED by foo START #####
 > AllowUsers foo > AllowUsers foo
->  +
-> # Added by admin end +> #KeepAlive no 
->  +#ClientAliveInterval 60 
-+> #ClientAlivecountMax 30 
 +
 +> ##### ADDED by foo END   ##### 
 +>
 </code> </code>
  
行 81: 行 87:
  
 <code> <code>
-$ sudo service ssh restart+$ sudo /etc/init.d/ssh reload
 </code> </code>
  
  
ubuntu-server-10-04/sshd_setting.1420280751.txt.gz · 最終更新: 2015/01/03 19:25 by admin