Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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. serverfault.com/questions/84521/… –  Zoredache Mar 31 at 16:23

1 Answer 1

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

 
discard

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.