Paramiko does not support SCP to my knowledge, only SFTP.  To use SCP you
need to use the ssh transport and set scp_if_ssh.

It sounds to me like you have a busted SFTP configuration.  You might try
using SFTP manually to see what happens.

On Wednesday, September 9, 2015, Asif Iqbal <[email protected]> wrote:

>
>
> On Wednesday, September 9, 2015 at 8:36:30 PM UTC-4, Asif Iqbal wrote:
>>
>>
>>
>> On Thursday, September 3, 2015 at 2:25:44 PM UTC-4, Asif Iqbal wrote:
>>>
>>> Hi All
>>>
>>> I am trying to connect to some freebsd server with custom password
>>> prompt. So I need to use paramiko since sshpass hangs on custom password
>>> prompt.
>>>
>>> With -c paramiko now I get the following error...
>>>
>>> $ ansible -vvvv -m ping -c paramiko remote
>>> <remote> ESTABLISH CONNECTION FOR USER: root on PORT 22 TO remote
>>> <remote> REMOTE_MODULE ping
>>> <remote> EXEC /bin/sh -c 'mkdir -p
>>> /export/home/axisys/.ansible/tmp/ansible-tmp-1441304559.02-141114907172308
>>> && chmod a+rx
>>> /export/home/axisys/.ansible/tmp/ansible-tmp-1441304559.02-141114907172308
>>> && echo
>>> /export/home/axisys/.ansible/tmp/ansible-tmp-1441304559.02-141114907172308'
>>> <remote> PUT /tmp/tmpPcx8Lk TO
>>> /export/home/axisys/.ansible/tmp/ansible-tmp-1441304559.02-141114907172308/ping
>>> remote | FAILED => failed to open a SFTP connection (Channel closed.)
>>>
>>> Any suggestion on how to get a workaround.
>>>
>>> Thanks
>>>
>>>
>> Still looking for some help .. I still cannot connect to these freebsd
>> servers
>>
>>
>
> Looks like a pull request is pending to make scp default for paramiko
> instead of sftp
>
>  https://groups.google.com/forum/#topic/ansible-project/pjFYB8tBGgE
>
> Any suggestion how to make scp default for paramiko? I am using ansible
> 1.7.1
>
> --
> 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]
> <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/fbee1a9b-8a3a-4056-b200-3ceb12a01366%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/fbee1a9b-8a3a-4056-b200-3ceb12a01366%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Matt Martz
@sivel
sivel.net

-- 
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/CAD8N0v9%3Dm4Yz4EORsGUiR83y2yEUjoLv3i%2BP2_68Z3dSPk_RpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to