ssh and remote sudo not hiding password

Colin Law clanlaw at googlemail.com
Mon Nov 9 12:26:27 UTC 2009


2009/11/6 Siggy Brentrup <bsb at xlab.net>:
> On Fri, Nov 06, 2009 at 21:46 +0000, Colin Law wrote:
>> I can shut down a remote machine by connecting via ssh then shutting it down
>> ssh ip_address
>> <logon messages>
>> sudo shutdown -h now
>> password: (entered pwd not visible)
>
> Did you ry the -t flag to ssh like this:

Yes, you must have missed an earlier reply, that worked perfectly for me, thanks

Colin

>
> % ssh -t REMOTE sudo echo murx
> [sudo] password for bsb:
> Sorry, try again.
> [sudo] password for bsb:
> murx
> Connection to REMOTE closed.
> %
>
> Sorry that I don't shutdown that machine ;)  And yes, I'm always using
> ssh keys.
>
> HTH
>  Siggy
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>




More information about the ubuntu-users mailing list