if you have removed /etc/ssh altogether, before running
sudo apt-get --reinstall install openssh-server
you have to recreate the directory /etc/ssh
and a file sshd_config in it if I am to believe my /var/lib/dpkg/info/openssh-server.postinst
where I can read :
#Preserve old sshd_config before generating a new one
if [ -e /etc/ssh/sshd_config ] ; then
mv /etc/ssh/sshd_config /etc/ssh/sshd_config.dpkg-old
fi
cat <<EOF > /etc/ssh/sshd_config
unfortunately, that didn't do the trick for me (my settings were lost during an upgrade)
I have to fix sshd_config, I am blocked with
debug2: ssh_connect: needpriv 0
debug1: Connecting to xxx.com [XXX.XXX.XXX.XXX] port 22.
debug1: Connection established.
debug1: identity file /home/dan/.ssh/id_rsa type -1
debug1: identity file /home/dan/.ssh/id_rsa-cert type -1
debug1: identity file /home/dan/.ssh/id_dsa type -1
debug1: identity file /home/dan/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6
debug1: match: OpenSSH_5.5p1 Debian-6 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.5p1 Debian-6
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
I don't have any prompt back
Lucky me :(
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613505
/etc
directory? Or just/etc/ssh
? Doesls -A /etc
andl -lA /etc/ssh
show any results? Do you mean an "installation over SSH" or an "installation of SSH" (openssh-server
oropenssh-client
?)?