6

I need a method of paramiko based file transfer with a lightweight SSH2 server (dropbear) which has no support for SCP or SFTP. Is there a way of achieving a cat and redirect style file transfer, such as:

ssh server "cat remote_file" > local_file

with paramiko channels?

Can paramiko.Transport.open_channel() or Message() do the job? I am unsure of how to proceed.

gunter
  • 71
  • 3

2 Answers2

1

If the limitation, as you say, is only in your client, you can easily implement a SFTP client directly with paramiko -- e.g., look at this example code.

Alex Martelli
  • 854,459
  • 170
  • 1,222
  • 1,395
1

pyfilesystem implements an sftp filesystem on top of paramiko.

Georges Martin
  • 1,158
  • 1
  • 8
  • 16