sudo – Atlantic Linux Blog http://atlanticlinux.ie/blog Thoughts on running an Irish Linux business Fri, 22 Aug 2014 15:00:13 +0000 en-US hourly 1 https://wordpress.org/?v=4.5.1 sudo via ssh http://atlanticlinux.ie/blog/sudo-via-ssh/ http://atlanticlinux.ie/blog/sudo-via-ssh/#respond Wed, 12 Aug 2009 07:30:09 +0000 http://atlanticlinux.ie/blog/?p=126 By default, if you attempt to run sudo through ssh, when you respond to the password prompt from sudo – it will echo the password back on your console. To avoid this, provide the -t option to ssh which forces the remote session to behave as if run through a normal tty (and thus masks the password), for example,

ssh -t foo.example.com sudo shutdown -r now
]]>
http://atlanticlinux.ie/blog/sudo-via-ssh/feed/ 0