openssh versão 6.9+ problemas iniciais

1

Eu estou no fiel (14.04.2 LTS). versão atual do openssh = 6.6 (OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3, OpenSSL 1.0.1f 6 de janeiro de 2014)

Foi dito para atualizar para o openssh = 6.9 ou superior.

Por que o daemon ssh agora não é iniciado / interrompido corretamente por meio do upstart?

Aqui está o que eu fiz ...

Baixado 6.9 tarball (openssh-6.9p1.tar.gz).

processado assim (tudo como root):

cd openssh-6.9p1
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --libexecdir=/usr/lib/openssh
make
stop ssh  ;(stopped properly)
make install

Encerra durante o lançamento do lançamento ...

start ssh  ;(control-c to escape)

Eu posso ver que o daemon NOVO está rodando, e na verdade eu posso ssh na caixa. A nova versão agora ...

ssh -V
OpenSSH_6.9p1, OpenSSL 1.0.1f 6 Jan 2014

Também tentei:

initctl --system start ssh

Reinicializado. ssh na caixa OK. Pode ver o serviço funcionando via: ps aux | grep ssh

O ID do processo em /var/run/sshd.pid corresponde ao que vi no ps acima.

stop ssh  ; hangs - control-c to escape.

Na verdade, eu tive o trabalho de baixar um pacote debian 6.9 e extrair o conteúdo. O script upstart lá é o mesmo que versão 6.6 está usando (eu não mucked w / it).

Conteúdo atual do /etc/init/ssh.conf:

# ssh - OpenBSD Secure Shell server
#
# The OpenSSH server provides secure shell access to the system.

description "OpenSSH server"

start on runlevel [2345]
stop on runlevel [!2345]

respawn
respawn limit 10 5
umask 022

env SSH_SIGSTOP=1
expect stop

# 'sshd -D' leaks stderr and confuses things in conjunction with 'console log'
console none

pre-start script
    test -x /usr/sbin/sshd || { stop; exit 0; }
    test -e /etc/ssh/sshd_not_to_be_run && { stop; exit 0; }

    mkdir -p -m0755 /var/run/sshd
end script

# if you used to set SSHD_OPTS in /etc/default/ssh, you can change the
# 'exec' line here instead
exec /usr/sbin/sshd -D
    
por Jack 03.12.2015 / 21:31

0 respostas