WebFaction
Community site: login faq

I've been trying to access the SFTP using Python and Paramiko using this tutorial with no success.
Has anyone been able to do this? Is this even possible?
A short Python code sample (with Paramiko or any other technique) would be great

asked 26 Feb '11, 15:21

Jonathan
281813
accept rate: 0%

edited 26 Feb '11, 15:31

1

Do you get any error messages? Can you provide the source you are using to connect?

(26 Feb '11, 15:41) aaronh ♦♦

Have a look at: http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/

This, for example, works for me:

<code>
import paramiko

ssh = paramiko.SSHClient ()
ssh.set_missing_host_key_policy (paramiko.AutoAddPolicy ())
ssh.connect ("web30.webfaction.com", username="username", password="secret")
ftp = ssh.open_ftp ()
ftp.get (".bash_history", "bash_history.txt")

</code>
permanent link

answered 18 Mar '11, 10:05

Tim Golden
112
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×337
×31

question asked: 26 Feb '11, 15:21

question was seen: 5,174 times

last updated: 18 Mar '11, 10:05

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM