Author Topic: Using FTP watcher with a secure (SFTP) connection.  (Read 1630 times)

D2149

  • Full Member
  • ***
  • Posts: 16
  • Bass Lake Ca.
Using FTP watcher with a secure (SFTP) connection.
« on: March 04, 2014, 03:44:44 AM »
Thought I would post this here for others who may need this info in future.

I just located the SSH/Shell settings for my web host account and activated it.  I generated the private and public keys, and authorized them.  I downloaded the private key file and placed it in a folder on my computer.

I then went into EDIT my watcher on the app, and changed the FTP setting from PASV to SFTP.  The port changed to 22 by itself I see.  I then made sure the host name, account name, and PW were correct which they were.  I then clicked the SSH KEY box and navigated to where my private key file had been downloaded on my computer.

SAVED.

FTP Watcher begins to PREPARE my files for upload, but quickly thereafter, I see "Error".  And it stops processing.  This repeats and repeats and nothing ever gets uploaded.  Looks to be some kind of connection issue, but without a log, I can't tell what specifically is going south.

Changing everything back to the default passive mode (PASV) and saving, uploads resume normally without any problems.

Any ideas Jason?
Rick - Station Operator



http://basslake-weather.com

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2619
Re: Using FTP watcher with a secure (SFTP) connection.
« Reply #1 on: March 04, 2014, 01:18:33 PM »
Sorry for the delayed reply (although I did reply to your email)

It turns out that the remote login path for the SFTP server was different to the FTP one, so that was what the error was.

D2149

  • Full Member
  • ***
  • Posts: 16
  • Bass Lake Ca.
Re: Using FTP watcher with a secure (SFTP) connection.
« Reply #2 on: March 05, 2014, 12:54:01 AM »
Sorry for the delayed reply (although I did reply to your email)

It turns out that the remote login path for the SFTP server was different to the FTP one, so that was what the error was.

Right!

Has been working like a charm ever since I figured out what was going on.  Glad it was something so simple.  :)

Would be great to have some more visible and detailed error reporting perhaps in the form of a Growl notification?  Nice that the app sends out growl notifications right out of the box!   :D
Rick - Station Operator



http://basslake-weather.com

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2619
Re: Using FTP watcher with a secure (SFTP) connection.
« Reply #3 on: March 05, 2014, 12:07:27 PM »
Excellent to hear that :)

I agree that Watcher could do with improvements to the error reporting side of things… mostly it tries to just re-try or skip problems automatically. I will look to improve that in a future update.

D2149

  • Full Member
  • ***
  • Posts: 16
  • Bass Lake Ca.
Re: Using FTP watcher with a secure (SFTP) connection.
« Reply #4 on: March 06, 2014, 09:31:17 AM »
Excellent to hear that :)

I agree that Watcher could do with improvements to the error reporting side of things… mostly it tries to just re-try or skip problems automatically. I will look to improve that in a future update.

Cool!

I will look forward to those expanded error handling features!  As you know, my application for your great little app is pretty active, so I stand to run into more potential issues than most, so having as detailed an error reporting system as possible would be great!

Thanks again Jason!  :)
Rick - Station Operator



http://basslake-weather.com