On Wednesday, September 9, 2015 at 10:38:34 PM UTC-4, Matt Martz wrote: > > 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. > >
I cannot use ssh since sshpass hangs on these freebsd custom prompts I see some discussion on adding scp.py into paramiko > It sounds to me like you have a busted SFTP configuration. You might try > using SFTP manually to see what happens. > > sftp is not allowed on most of these freebsd systems > On Wednesday, September 9, 2015, Asif Iqbal <[email protected] > <javascript:>> 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]. >> 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/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/2d3ad2cd-1b16-4611-95e6-beca65afd0e5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
