20.2. OpenSSH の関連ファイル

Turbolinux 10 Server における OpenSSH の設定ファイルは、/etc/ssh/ ディレクトリに格納されます。各ファイルの概要は以下の通りです。

表 20-1. OpenSSH 関連ファイル

 ファイル名備考
バージョンopenssh-server-3.9p1 
openssh-clients-3.9p1 
openssh-3.9p1 
デーモン/usr/sbin/sshd 
設定ファイル/etc/ssh/sshd_configSSH サーバーの設定ファイル
/etc/ssh/ssh_configSSH クライアントの設定ファイル
~/.ssh/known_hostSSH サーバーの公開鍵を登録
起動スクリプト/etc/init.d/sshd 
ログ/var/log/messages 
/var/log/secure 
クライアントアプリケーション/usr/bin/sshSSH クライアント
/usr/bin/scpscp(Secure CoPy)クライアント
/usr/bin/sftpFTP クライアントプログラム
/usr/bin/ssh-add認証エージェントへの秘密鍵登録プログラム
/usr/bin/ssh-agent公開鍵暗号方式で使用する秘密鍵を保持するエージェント
/usr/bin/ssh-keygen秘密鍵、公開鍵の生成プログラム
ホスト認証用鍵/etc/ssh/ssh_host_keySSH v1 用 RSA 秘密鍵
/etc/ssh/ssh_host_key.pubSSH v1 用 RSA 公開鍵
/etc/ssh/ssh_host_rsa_keySSH v2 用 RSA 秘密鍵
/etc/ssh/ssh_host_rsa_key.pubSSH v2 用 RSA 公開鍵
/etc/ssh/ssh_host_dsa_keySSH v2 用 DSA 秘密鍵
/etc/ssh/ssh_host_dsa_key.pubSSH v2 用 DSA 公開鍵

SSH サーバーのデーモンである sshd の設定ファイルは、/etc/ssh/sshd_config です。また、ssh クライアントの設定ファイルは、/etc/ssh/ssh_config です。通常これらの設定ファイルを編集することは、ほとんどありません。また、ホストの公開鍵や秘密鍵は、SSH サーバーの初回起動時に /etc/init.d/sshd スクリプトにより自動的に生成されます。