On 04/04/2014 12:59, Alfredo Deza wrote:
We test heavily against 12.04 and I use it almost daily for
testing/working with ceph-deploy as well
and have not seen this problem at all.

I have made sure that I have the same SSH version as you:

$ cat /etc/issue
Ubuntu 12.04 LTS \n \l

$ ssh -v
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012

But cannot reproduce this at all.

You run ceph-deploy as a regular user, not as root? And you can't replicate just using ssh at the command line? How strange.

brian@ceph-admin:~$ ssh node1 ls
brian@node1's password:
xxx
yyy
brian@ceph-admin:~$ ssh node1 'sudo ls'
brian@node1's password:
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts


These VMs are Ubuntu server amd64, in virtualbox, using a relatively old (12.04.1) multi-attach volume.

What you have is exactly the same version of openssh as I was using originally. I did update openssh-client/server to the slightly newer 1:5.9p1-5ubuntu1.2 which is currently available, but it made no difference.

$ ssh -v
OpenSSH_5.9p1 Debian-5ubuntu1.2, OpenSSL 1.0.1 14 Mar 2012

Are you using the desktop rather than server version of Ubuntu? Is it prompting you for the sudo password out-of-band, for example in a pop-up dialog?

I tried adding ssh-askpass on both client and server machines. It needs some fiddling to make it work:

$ ssh -o ForwardX11=yes node1 'SUDO_ASKPASS=/usr/bin/ssh-askpass sudo ls'
brian@node1's password:
<< at this point a graphical dialog pops up asking for my password again >>
xxx
yyy

If you create /etc/sudo.conf (not /etc/sudoers!) containing
Path askpass /usr/X11R6/bin/ssh-askpass
then you don't need the SUDO_ASKPASS incantation.

But none of this seems to be present in an out-of-the-box Ubuntu 12.04 setup.

Regards,

Brian.

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to