<p dir="ltr">Its interesting how much trouble private and public keys can cause. Playing round with puppet and mcollective to distribute ssh keys certaintly makes for an interesting task.</p>
<p dir="ltr">We have a useful script that checks if the computer is running windows or linux remotely via snmp then ssh in and reboots it if its running the wrong one. After first telling it which to boot via tftp. Cron Switches to linux, then windows and then back to linux every night. I've got no idea what the mice think when 200 machines reboot at once in the middle of the night and start running updates. </p>
<p dir="ltr">Peter</p>
<div class="gmail_quote">On 2 Oct 2013 11:50, "Paul Littlefield" <<a href="mailto:info@paully.co.uk">info@paully.co.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 02/10/13 11:41, Dan Attwood wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
the uptime command works fine<br>
<br>
switching back to the shutdown one though gives me:<br>
<br>
<br>
<br>
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0<br>
debug1: client_input_channel_req: channel 0 rtype <a href="mailto:eow@openssh.com" target="_blank">eow@openssh.com</a> <mailto:<a href="mailto:eow@openssh.com" target="_blank">eow@openssh.com</a>> reply 0<br>
shutdown: Need to be root<br>
</blockquote>
<br>
<br>
Aaah, interesting. I note the "shutdown: Need to be root" debug line.<br>
<br>
<br>
1. What's the exact 'reboot' command you are typing in the ssh command?<br>
<br>
2. What's the line you added to /etc/sudeors?<br>
<br>
3. Read this - <a href="http://bit.ly/19gZtjZ" target="_blank">http://bit.ly/19gZtjZ</a><br>
<br>
:-)<br>
<br>
<br>
<br>
-- <br>
<br>
Paul Littlefield<br>
<br>
Telephone: 07801 125705<br>
Email: <a href="mailto:info@paully.co.uk" target="_blank">info@paully.co.uk</a><br>
Web: <a href="http://www.paully.co.uk" target="_blank">http://www.paully.co.uk</a><br>
Twitter: <a href="https://twitter.com/paullittlefield" target="_blank">https://twitter.com/<u></u>paullittlefield</a><br>
Wiki: <a href="http://wiki.indie-it.com/index.php?title=Special:AllPages" target="_blank">http://wiki.indie-it.com/<u></u>index.php?title=Special:<u></u>AllPages</a><br>
Blog: <a href="http://www.littlefield.info" target="_blank">http://www.littlefield.info</a><br>
Photo: <a href="http://gravatar.com/plittlefield" target="_blank">http://gravatar.com/<u></u>plittlefield</a><br>
LinkedIn: <a href="http://uk.linkedin.com/in/paullittlefield" target="_blank">http://uk.linkedin.com/in/<u></u>paullittlefield</a><br>
Trakt: <a href="http://trakt.tv/user/plittlefield" target="_blank">http://trakt.tv/user/<u></u>plittlefield</a><br>
<br>
Paul Littlefield is environmentally responsible. Please consider the environment before printing this email. This email and any attachment is intended for the named addressee only, or person authorised to receive it on their behalf. The content should be treated as confidential and the recipient may not disclose this message or any attachment to anyone else without authorisation. If this transmission is received in error please notify the sender immediately and delete this message from your email system. All electronic transmissions to and from me are recorded and may be monitored. Finally, the recipient should check this email and any attachments for viruses. Paul Littlefield accepts no liability for any damage caused by any virus transmitted by this email.<br>
<br>
Notebook LENOVO ThinkPad Edge<br>
Intel(R) Core(TM) i3 CPU U 380 @ 1.33GHz<br>
Portage 2.1.12.2 (default/linux/amd64/13.0/<u></u>desktop, gcc-4.7.2, glibc-2.15-r3, 3.10.7-gentoo x86_64)<br>
Gentoo Base System release 2.1<br>
This is a pre-release version of the X server from The X.Org Foundation.<br>
latest version in the X.Org Foundation git repository.<br>
X.Org X Server 1.14.2.902 (1.14.3 RC 2)<br>
xfce-base/xfdesktop-4.10.2<br>
x11-drivers/xf86-video-intel-<u></u>2.21.15<br>
<br>
______________________________<u></u>_________________<br>
Kent mailing list<br>
<a href="mailto:Kent@mailman.lug.org.uk" target="_blank">Kent@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/kent" target="_blank">https://mailman.lug.org.uk/<u></u>mailman/listinfo/kent</a><br>
</blockquote></div>