Hello,

On Thu, Sep 05, 2013 at 04:38:46PM -0700, Vagrant
Cascadian wrote:
> When called via ssh directly, it echoes the passphrase:
> 
>   vagrant@local:~$ ssh server passwd
>   (current) UNIX password: dlkgfjsdgfkjsd

ssh <user@server> <command> doesn't allocate
pseudo terminal, therefore tcgetattr() + &=~ECHO +
tcsetattr() won't work.

You should use ssh -t <user@server> <command>
instead.

Some programs refuse to be started without a TTY,
e.g. screen:
> xrgtn@ux280p:~$ ssh xrgtn-gu...@alioth.debian.org screen
> Must be connected to a terminal.
> xrgtn@ux280p:~$ 

I think this is the only thing we can do (refuse
to start passwd without a terminal).

-- 
With best regards,
xrgtn

Attachment: signature.asc
Description: Digital signature

Reply via email to