[Bug 911753] Re: Wrong directive in config file cause server to crash

Firat Sarlar sfirat at yahoo.com
Tue Apr 2 04:09:03 UTC 2013


Something similar has happened to me, I'm still trying to recover my EC2
instance ..

In Upstart config file ,
instead of 

--           exec /usr/sbin/sshd -D

inside scricpt block 
doing a config test with -t parameter
 and revert to a backup config like /etc/ssh/sshd_config.bk if config test fails 
could save someone from trouble..

++
script

    if [ "$(/usr/sbin/sshd -t 2>&1)" != "" ]; then
            exec /usr/sbin/sshd -D -f /etc/ssh/sshd_config.bk
    else
            exec /usr/sbin/sshd -D
    fi

end script

++

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/911753

Title:
  Wrong directive in config file cause server to crash

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/911753/+subscriptions



More information about the Ubuntu-server-bugs mailing list