Greetings folks,

My problem hasn't been solved, but I figured out that it's definitely not a
Paramiko problem--most likely a problem with our vendor that set up the
SFTP.

My personal lesson learned is that EC2 is awesome, and I need to use it more
often.  It took me all of an hour of work to spin up a new Windows instance,
install the software, and start testing with a brand new server.  It would
have been half that amount of time if I didn't trip over the firewall
settings.

Since I had no trouble connecting and downloading files, we know that it's
not a nebulous Paramiko problem, just a simple one with the SFTP
configuration.

Thanks everyone for the help.



Thanks,
Mark
http://markphillip.com



On Tue, Dec 21, 2010 at 3:39 PM, Ike Ofili <[email protected]> wrote:

> Alternatively ... post your code here so folks can see exactly what you're
> doing.
>
> On Tue, Dec 21, 2010 at 3:34 PM, Mark Phillip <[email protected]>wrote:
>
>> Hey folks, thanks for the extra thoughts.
>>
>> The key frustration is that this script has worked fine when communicating
>> with our original Linux-based SFTP server--the problem has cropped up after
>> moving to a different server.  Manually running SFTP via the command-line
>> from the box, and via a GUI on my Windows desktop both work fine.  It's only
>> when I run the existing Python script using Paramiko that there is a
>> problem.
>>
>> I'll try stackoverflow and then get to ripping out my last few hair
>> follicles.
>>
>>
>>
>> Thanks,
>> Mark
>> http://markphillip.com
>>
>>
>>
>> On Tue, Dec 21, 2010 at 2:22 PM, Ian Ward <[email protected]> wrote:
>>
>>> Mark, what are the symptoms of the failure? Are you reproducing it
>>> manually or just with your automation?  Are you using the correct
>>> modes (active/passive, bin/ascii)? Are you sure that you're using the
>>> right kind of protocol and layer? I had hell finding a python library
>>> that supported FTP over implicit SSL, which is different than explicit
>>> SSL, SFTP (SSH FTP or SSH2 FTP) or TLS.
>>>
>>> - ian
>>>
>>> On Tue, Dec 21, 2010 at 2:09 PM, Mark Phillip <[email protected]>
>>> wrote:
>>> > Thanks for the thoughts, guys.  Sadly, no luck there.  I've tried
>>> forward
>>> > and backwards slashes, changing the working directory and not, and even
>>> > creating new users and starting from scratch.
>>> > Because deletes and puts work just fine, I'm afraid it's some
>>> underlying
>>> > Linux/Windows communication problem that I just won't be able to solve.
>>> >
>>> >
>>> > Thanks,
>>> > Mark
>>> > http://markphillip.com
>>> >
>>> >
>>> >
>>> > On Tue, Dec 21, 2010 at 11:17 AM, Larry Kubin <[email protected]>
>>> wrote:
>>> >>
>>> >> Haven't used the SFTP libraries, but we run our game server code
>>> >> locally on windows during development. It uses Python's Twisted
>>> >> Framework and we use backslashes in directory paths. In a string the
>>> >> backslash "\" is used to escape characters, so you need to escape the
>>> >> backslash itself with another backslash or use a raw string like so:
>>> >>
>>> >> r'C:\My\Windows\Path'
>>> >>
>>> >> - Larry
>>> >>
>>> >>
>>> >>
>>> >> On Tue, Dec 21, 2010 at 10:42 AM, Josh Kleinpeter <[email protected]>
>>> >> wrote:
>>> >> > First thing first, have you tried it manually? Is there a difference
>>> in
>>> >> > the commands you type?
>>> >> >
>>> >> > It is Windows, maybe '\' instead of '/'?
>>> >> >
>>> >> >
>>> >> > On Dec 21, 2010, at 10:20 AM, Mark Phillip wrote:
>>> >> >
>>> >> >> Morning folks,
>>> >> >>
>>> >> >> I have a python script that has been working for quite some time
>>> that
>>> >> >> connects to an SFTP server, grabs specific files, downloads them,
>>> and
>>> >> >> finally deletes them off of the remote server.
>>> >> >>
>>> >> >> Everything works just fine, but we've had to point to a new SFTP
>>> server
>>> >> >> thats running Windows.
>>> >> >>
>>> >> >> Now, for some reason, I'm able to push files, delete files, and
>>> list
>>> >> >> files in a directory, but not actually download the files.  I've
>>> tried every
>>> >> >> combination of '', '.', './', '/', '/home/', '/foldername/', I can
>>> think of
>>> >> >> with zero success.
>>> >> >>
>>> >> >> Does this problem ring a bell for anyone?
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> Thanks,
>>> >> >> Mark
>>> >> >> http://markphillip.com
>>> >> >>
>>> >> >>
>>> >> >> --
>>> >> >> Our Web site: http://www.RefreshAustin.org/
>>> >> >>
>>> >> >> You received this message because you are subscribed to the Google
>>> >> >> Groups "Refresh Austin" group.
>>> >> >>
>>> >> >> [ Posting ]
>>> >> >> To post to this group, send email to
>>> [email protected]
>>> >> >> Job-related postings should follow
>>> http://tr.im/refreshaustinjobspolicy
>>> >> >> We do not accept job posts from recruiters.
>>> >> >>
>>> >> >> [ Unsubscribe ]
>>> >> >> To unsubscribe from this group, send email to
>>> >> >> [email protected]<refresh-austin%[email protected]>
>>> >> >>
>>> >> >> [ More Info ]
>>> >> >> For more options, visit this group at
>>> >> >> http://groups.google.com/group/Refresh-Austin
>>> >> >
>>> >> > --
>>> >> > Our Web site: http://www.RefreshAustin.org/
>>> >> >
>>> >> > You received this message because you are subscribed to the Google
>>> >> > Groups "Refresh Austin" group.
>>> >> >
>>> >> > [ Posting ]
>>> >> > To post to this group, send email to
>>> [email protected]
>>> >> > Job-related postings should follow
>>> http://tr.im/refreshaustinjobspolicy
>>> >> > We do not accept job posts from recruiters.
>>> >> >
>>> >> > [ Unsubscribe ]
>>> >> > To unsubscribe from this group, send email to
>>> >> > [email protected]<refresh-austin%[email protected]>
>>> >> >
>>> >> > [ More Info ]
>>> >> > For more options, visit this group at
>>> >> > http://groups.google.com/group/Refresh-Austin
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Larry Kubin
>>> >>
>>> >> --
>>> >> Our Web site: http://www.RefreshAustin.org/
>>> >>
>>> >> You received this message because you are subscribed to the Google
>>> Groups
>>> >> "Refresh Austin" group.
>>> >>
>>> >> [ Posting ]
>>> >> To post to this group, send email to [email protected]
>>> >> Job-related postings should follow
>>> http://tr.im/refreshaustinjobspolicy
>>> >> We do not accept job posts from recruiters.
>>> >>
>>> >> [ Unsubscribe ]
>>> >> To unsubscribe from this group, send email to
>>> >> [email protected]<refresh-austin%[email protected]>
>>> >>
>>> >> [ More Info ]
>>> >> For more options, visit this group at
>>> >> http://groups.google.com/group/Refresh-Austin
>>> >
>>> > --
>>> > Our Web site: http://www.RefreshAustin.org/
>>> >
>>> > You received this message because you are subscribed to the Google
>>> Groups
>>> > "Refresh Austin" group.
>>> >
>>> > [ Posting ]
>>> > To post to this group, send email to [email protected]
>>> > Job-related postings should follow
>>> http://tr.im/refreshaustinjobspolicy
>>> > We do not accept job posts from recruiters.
>>> >
>>> > [ Unsubscribe ]
>>> > To unsubscribe from this group, send email to
>>> > [email protected]<refresh-austin%[email protected]>
>>> >
>>> > [ More Info ]
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/Refresh-Austin
>>> >
>>>
>>> --
>>> Our Web site: http://www.RefreshAustin.org/
>>>
>>> You received this message because you are subscribed to the Google Groups
>>> "Refresh Austin" group.
>>>
>>> [ Posting ]
>>> To post to this group, send email to [email protected]
>>> Job-related postings should follow http://tr.im/refreshaustinjobspolicy
>>> We do not accept job posts from recruiters.
>>>
>>> [ Unsubscribe ]
>>> To unsubscribe from this group, send email to
>>> [email protected]<refresh-austin%[email protected]>
>>>
>>> [ More Info ]
>>> For more options, visit this group at
>>> http://groups.google.com/group/Refresh-Austin
>>>
>>
>>  --
>> Our Web site: http://www.RefreshAustin.org/
>>
>> You received this message because you are subscribed to the Google Groups
>> "Refresh Austin" group.
>>
>> [ Posting ]
>> To post to this group, send email to [email protected]
>> Job-related postings should follow http://tr.im/refreshaustinjobspolicy
>> We do not accept job posts from recruiters.
>>
>> [ Unsubscribe ]
>> To unsubscribe from this group, send email to
>> [email protected]<refresh-austin%[email protected]>
>>
>> [ More Info ]
>> For more options, visit this group at
>> http://groups.google.com/group/Refresh-Austin
>>
>
>  --
> Our Web site: http://www.RefreshAustin.org/
>
> You received this message because you are subscribed to the Google Groups
> "Refresh Austin" group.
>
> [ Posting ]
> To post to this group, send email to [email protected]
> Job-related postings should follow http://tr.im/refreshaustinjobspolicy
> We do not accept job posts from recruiters.
>
> [ Unsubscribe ]
> To unsubscribe from this group, send email to
> [email protected]<refresh-austin%[email protected]>
>
> [ More Info ]
> For more options, visit this group at
> http://groups.google.com/group/Refresh-Austin
>

-- 
Our Web site: http://www.RefreshAustin.org/

You received this message because you are subscribed to the Google Groups 
"Refresh Austin" group.

[ Posting ]
To post to this group, send email to [email protected]
Job-related postings should follow http://tr.im/refreshaustinjobspolicy
We do not accept job posts from recruiters.

[ Unsubscribe ]
To unsubscribe from this group, send email to 
[email protected]

[ More Info ]
For more options, visit this group at 
http://groups.google.com/group/Refresh-Austin

Reply via email to