devenh
Posts: 32
Joined: Fri Jun 05, 2015 9:11 pm

How to disable authentication for remote shutdown?

Tue Sep 06, 2016 6:59 pm

Until the 5/27/2016 version of Jessie I could remotely shutdown my Pi without authentication (I am using the GUI). However, the 5/27/2016 version does require authentication for remote shutdowns and reboots. How can I disable the authentication request?

User avatar
DougieLawson
Posts: 36327
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: How to disable authentication for remote shutdown?

Wed Sep 07, 2016 7:52 am

You can update /etc/ssh/sshd_config change

Code: Select all

PermitRootLogin without-password
to

Code: Select all

PermitRootLogin yes
but that is a security exposure.

It's better to use a userid with sudo privileges or login as root with a public/private key pair.
http://www.linuxproblem.org/art_9.html

You can also update /etc/sudoers (using sudo visudo) to remove the need to authenticate to run a sudo command, but that is also a security exposure.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Return to “Troubleshooting”