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

2013-04-01 Thread Firat Sarlar
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 21) !=  ]; 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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


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

2013-04-01 Thread Firat Sarlar
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 21) !=  ]; 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
Bugs, which is subscribed to 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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs