Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (22 sloc) 673 Bytes
import sftp.*;
Sftp sftp;
void setup() {
// Create the SFTP object
// if 3rd argument is false, you must set the password in your code
// if 3rd argument is true, you will be prompted to enter your password
sftp = new Sftp("","login", true);
// sftp.setPassword("XXXXXX");
sftp.start(); // start the thread
void draw() {
void mousePressed() {
// At any point you can execute an SFTP command
// Not all commands are currently implemented, but you do have "ls" and "get"
// Gosh, I should implement "put", sorry!
sftp.executeCommand("get file.txt");
You can’t perform that action at this time.