That error is a sudo error, not an SSH error.  Making root login possible
without password doesn't affect this at all.  ceph-deploy is successfully
logging in as sds to node01, but is failing to be able to execute sudo
commands without a password.  To fix that you need to use `visudo` to give
the sds user the ability to run sudo commands with nopasswd.

On Fri, May 18, 2018 at 9:01 AM Antonio Novaes <antonionovae...@gmail.com>
wrote:

> I tried create new cluster ceph, but on the my first command, received
> this erro in blue.
> Searched on the gogle about this erro, but believe that is error of the
> ssh, and dont of the ceph.
>
> I tried:
> alias ssh="ssh -t" on the admin node
>
> I Modifyed the file
>
> Host node01
>    Hostname node01.domain.local
>    User sds
>    PreferredAuthentications publickey
>    IdentityFile /home/sds/.ssh/id_rsa
>
> also try,
> - start the command wtih sudo
> -  Add PermitRootLogin whitout-password on /etc/ssh/sshd_config on the
> host node01
>
> But, erro hold
>
> [ceph_deploy.new][DEBUG ] Creating new cluster named ceph
> [ceph_deploy.new][INFO  ] making sure passwordless SSH succeeds
> [node01][DEBUG ] connected to host: cadmfsd001.tjba.jus.br
> [node01][INFO  ] Running command: ssh -CT -o BatchMode=yes node01
> [ceph_deploy.new][WARNIN] could not connect via SSH
> [ceph_deploy.new][INFO  ] will connect again with password prompt
> [node01][DEBUG ] connected to host: sds@node01
> [node01][DEBUG ] detect platform information from remote host
> [node01][DEBUG ] detect machine type
> [ceph_deploy.new][INFO  ] adding public keys to authorized_keys
> [node01][DEBUG ] append contents to file
> [node01][DEBUG ] connection detected need for sudo
> *sudo: I'm sorry, you should have a tty to run sudo*
> *[ceph_deploy][ERROR ] RuntimeError: connecting to host: sds@node01
> resulted in errors: IOError cannot send (already closed?)*
>
> Someone can help me?
>
> Att,
> Antonio Novaes de C. Jr
> Analista TIC - Sistema e Infraestrutura
> Especialista em Segurança de Rede de Computadores
> Information Security Foundation based on ISO/IEC 27002 | ISFS
> EXIN Cloud Computing (CLOUDF)
> Red Hat Certified Engineer (RHCE)
> Red Hat Certified Jboss Administrator (RHCJA)
> Linux Certified Engineer (LPIC-2)
> Novell Certified Linux Administrator (SUSE CLA)
> ID Linux: 481126 | LPI000255169
> LinkedIN: Perfil Público
> <https://www.linkedin.com/in/antonio-novaes-de-carvalho-jr-isfs-rhce-rcja-13860850/>
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to