The device might use a non-standard SSH daemon that only implements enough
of the SSH protocol to allow remote interactive logins, but not enough to
allow the types of non-interactive connections that Ansible is trying to
make.

Try your test from the command line with and without the -T and -t flags
(-T disables pseudo-tty allocation, while -t forces pseudo-tty allocation).

ssh -t [email protected] olstatus 6
ssh -T [email protected] olstatus 6


If the first one works, and the second one doesn't, then you will need to
add an entry into your ~/.ssh/config like this:

Host 10.26.1.129
    RequireTTY


This will always ensure that the client requests a pseudo-tty, even when
running non-interactively.


----
Mark McCoy <http://markmccoy.us>


On Mon, Feb 2, 2015 at 3:47 PM, Drew Marold <[email protected]>
wrote:

> On further investigation, this appears to be an issue with the ssh server
> built into the PDU rather than an Ansible issue. While I can ssh to it for
> an interactive session, if I try to just send a command like 'ssh
> [email protected] olstatus 6'  it connects but the session closes before I
> get the response, and I think that's what's happening to the Ansible
> connection. If anyone has ever successfully used this with APC gear I'd
> love to hear about it.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/6eaa2423-541d-4a3d-8699-d0da0b4e8576%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/6eaa2423-541d-4a3d-8699-d0da0b4e8576%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAP2%3DG9Nb%2BBwCjnF4aPJ8QSM7f58XdKedLxsU-oozzBV_7aKwiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to