web-dev-qa-db-ja.com

debianのsshd設定のHostKeyAlgorithms-デーモンのリロードが失敗する

Debian Jessieサーバーを持っていますが、DNSSSHFPレコードに関するサーバー上のsshキーのフィンガープリントを確認したいと思います。これは正常に機能しますが、クライアントがssh経由でサーバーに接続する場合、サーバーはssh-ecdsaアルゴリズムを提供します。 ssh-ed25519とssh-rsaのみがサポートされているアルゴリズムであるsshデーモンを構成したいと思います。 Ubuntu 16.04の場合、ssh構成キーHostKeyAlgorithmsを使用しますが、Debianでこのキーを使用すると、デーモンを起動できません。

デーモンがこの構成キーをサポートしていないのはなぜですか、または他の構成キーを使用してssh-ed25519アルゴリズムとssh-rsaアルゴリズムのみをサポートする必要があるのですか?

ここに私のsshd_config

AcceptEnv LANG LC_*
AuthorizedKeysFile  %h/.ssh/authorized_keys
ChallengeResponseAuthentication no
HostbasedAuthentication no
HostKey         /etc/ssh/ssh_Host_rsa_key
HostKey         /etc/ssh/ssh_Host_dsa_key
HostKey         /etc/ssh/ssh_Host_ecdsa_key
HostKey         /etc/ssh/ssh_Host_ed25519_key
#HostKeyAlgorithms  ssh-ed25519,ssh-rsa
KeyRegenerationInterval 3600
LoginGraceTime      120
LogLevel                INFO
MaxAuthTries        10
MaxSessions     5
PasswordAuthentication  no
PermitEmptyPasswords    no
PermitRootLogin     without-password
Port            22
PrintMotd               no
PrintLastLog        no
Protocol        2
RSAAuthentication   no
PubkeyAuthentication    yes
ServerKeyBits       4096
StrictModes     yes
SyslogFacility          AUTH
RhostsRSAAuthentication no
Subsystem       sftp /usr/lib/openssh/sftp-server
TCPKeepAlive        yes
UsePAM          no
UsePrivilegeSeparation  yes
3
Volker Raschek

HostKeyAlgorithmsOpenSSH 6.7p1では実装されていません であり、Debian Jessieで利用できます。

Ssh-ed25519とssh-rsaのみがサポートされているアルゴリズムであるsshデーモンを構成したい

構成HostKeyからそれぞれのキーを削除すると、サーバーから提供されなくなります(次の行)。

HostKey         /etc/ssh/ssh_Host_dsa_key
HostKey         /etc/ssh/ssh_Host_ecdsa_key
3
Jakuje