Bug#783594: openssh-server: sshd -T does not show actual kexchange and ciphers
Package: openssh-server
Version: 1:6.7p1-5
Severity: normal
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
After upgrading to Debian 8.0, my PhpDesigner could not connect over sftp.
Client reported:
Server does not support diffie-hellman-group1-sha1 for keyexchange.
Server reported: (breaks added)
fatal: no matching cipher found:
client blowfish-cbc,cast128-cbc,aes128-cbc,3des-cbc
server aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
[preauth]
Reports suggested adding the needed ciphers, so I wanted to get the current
options, and adding the needed.
sshd -T looked like the option to get the current options:
man sshd:
-T Extended test mode. Check the validity of the configuration file,
output the effective configuration to stdout and then exit.
But
sshd -T|grep kex
kexalgorithms
diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org
shows the algoritm client complains about
sshd -T|grep ciphers
ciphers
3des-cbc,blowfish-cbc,cast128-cbc,arcfour,arcfour128,arcfour256,aes128-cbc,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
shows the ciphers, server complains about
sshd -T|grep kex >> /etc/ssh/sshd_config
sshd -T|grep ciphers >> /etc/ssh/sshd_config
service ssh restart
makes my sftp client connect.
It appears that -T does not show the effective (current) options, but the
available options.
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: 8.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=da_DK.UTF-8, LC_CTYPE=da_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Versions of packages openssh-server depends on:
ii adduser 3.113+nmu3
ii debconf [debconf-2.0] 1.5.56
ii dpkg 1.17.25
ii init-system-helpers 1.22
ii libc6 2.19-18
ii libcomerr2 1.42.12-1.1
ii libgssapi-krb5-2 1.12.1+dfsg-19
ii libkrb5-3 1.12.1+dfsg-19
ii libpam-modules 1.1.8-3.1
ii libpam-runtime 1.1.8-3.1
ii libpam0g 1.1.8-3.1
ii libselinux1 2.3-2
ii libssl1.0.0 1.0.1k-3
ii libwrap0 7.6.q-25
ii lsb-base 4.1+Debian13+nmu1
ii openssh-client 1:6.7p1-5
ii openssh-sftp-server 1:6.7p1-5
ii procps 2:3.3.9-9
ii zlib1g 1:1.2.8.dfsg-2+b1
Versions of packages openssh-server recommends:
ii ncurses-term 5.9+20140913-1
ii xauth 1:1.0.9-1
Versions of packages openssh-server suggests:
pn molly-guard <none>
pn monkeysphere <none>
pn rssh <none>
pn ssh-askpass <none>
pn ufw <none>
-- debconf information excluded
Reply to: