Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing a bash shell script that sets up a server. To prevent it asking for e.g. the mysql server root password I use

debconf-set-selections <<< 'mysql-server mysql-server/root_password password roooot'
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password roooot'

and of course I use the -y parameter for apt-get install.

Now when installing ssh on Ubuntu 14.04 LTS it asks me whether to disable the SSH password authentication for root. I want to define an answer for that, too.

So: What is that question's name? And in more general: How can I find out those parameters by myself?

debconf-set-selections <<< 'ssh ?? boolean true/false'
share|improve this question
Use debconf-get-selections on a working system.… – Zoredache Mar 31 '14 at 16:23
up vote 0 down vote accepted

Thank you Zoredache, debconf-get-selections on a machine where this version of ssh is already installed did it. In this case

debconf-set-selections <<< 'ssopenssh-server openssh-server/permit-root-login boolean true'
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.