[Tutor] sftp get single file
Matt Herzog
msh at blisses.org
Mon Jul 20 23:08:03 CEST 2009
On Mon, Jul 20, 2009 at 11:02:52PM +0200, Sander Sweers wrote:
> 2009/7/20 Matt Herzog <msh at blisses.org>:
> > Traceback (most recent call last):
> > ??File "./scpgetter.py", line 20, in ?
> > ?? ?? ??sftp.get(remotepath, localpath)
> > ?? ?? ?? ??File "build/bdist.linux-x86_64/egg/paramiko/sftp_client.py", line 584, in get
> > ?? ?? ?? ?? ??File "build/bdist.linux-x86_64/egg/paramiko/sftp_client.py", line 240, in open
> > ?? ?? ?? ?? ?? ??File "build/bdist.linux-x86_64/egg/paramiko/sftp_client.py", line 609, in _request
> > ?? ?? ?? ?? ?? ?? ??File "build/bdist.linux-x86_64/egg/paramiko/sftp_client.py", line 656, in _read_response
> > ?? ?? ?? ?? ?? ?? ?? ??File "build/bdist.linux-x86_64/egg/paramiko/sftp_client.py", line 682, in _convert_status
> > ?? ?? ?? ?? ?? ?? ?? ??IOError: (2, '')
>
> Ah, now it get interesting. Genrally IOError means the file is not
> found. And looking at the source for _convert_status it is axactly
> that. The file you are trying to "get" is not found on the server so
> check your remotepath.
The file is there. I can sftp it using fugu.
The path is /20090720.tab since the file lives in a jail.
More information about the Tutor
mailing list