Re: login passwd not masked in remote command modus

This is a discussion on Re: login passwd not masked in remote command modus within the OpenSSH Development forums, part of the Networking and Network Related category; On November 11, tom@penumbra.be said: > I've recently discovered a rather nasty bug. My login password is &...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-11-2005
Daniel Kahn Gillmor
 
Posts: n/a
Default Re: login passwd not masked in remote command modus

On November 11, tom@penumbra.be said:

> I've recently discovered a rather nasty bug. My login password is
> visible when I use the following command:
>
> arioch@server ~ $ ssh arioch@192.168.0.1 sudo tail -f /var/log/messages; exit
> Password: ********** (user - masked)
> Password: my_not-so-secret-anymore_password (root - not masked)


This is because when you use ssh with an explicit command (in the
example above, your command is sudo), ssh doesn't bother allocating a
pseudo-tty for your session, which means that sudo's password-hiding
is not done, since it is not running within a terminal, as far as it
knows.

To force ssh to allocate a pseudo-tty, use -t, as in:

ssh -t arioch@192.168.0.1 sudo tail -f /var/log/messages; exit

Use "man ssh" and search for pseudo-tty for more details.

Hope this helps,

--dkg

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://www.mindrot.org/mailman/listi...enssh-unix-dev
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0