Use ssh keys<br><br><div class="gmail_quote">On Fri, Nov 6, 2009 at 3:46 PM, Colin Law <span dir="ltr"><<a href="mailto:clanlaw@googlemail.com">clanlaw@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I can shut down a remote machine by connecting via ssh then shutting it down<br>
ssh ip_address<br>
<logon messages><br>
sudo shutdown -h now<br>
password: (entered pwd not visible)<br>
<br>
and the remote machine shuts down.<br>
To save typing (and brain power) I wrote a script on local machine<br>
ssh ip_addr sudo shutdown -h now<br>
When I run the script it works as expected and shuts down the remote<br>
machine, but when it prompts me for the password (for the sudo<br>
shutdown), the password I type is not hidden but is visible on screen,<br>
which is not good. I am sure there is a way round this but I have not<br>
managed to find it. Any help will be much appreciated.<br>
<br>
Colin<br>
<font color="#888888"><br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></blockquote></div><br>