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'

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

The command in this case is:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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