Comments (13)
I have used this library in the past to do sftp in one of my projects.
Might be of some use.
from ftpgrab.
That does indeed make it work. Thank you for taking the time to add sftp!
from ftpgrab.
Hi @gregf, yes previously it was available through cURL. I completely forgot about it 😓. I will add support for SFTP on the next release and also bring support for FreeBSD ;)
Thanks for your input!
from ftpgrab.
@gregf I have introduced SFTP support in the latest beta. Pubkey auth is not available for the moment. Can you give me your input? Thanks!
from ftpgrab.
ftpgrab --config=/home/gregf/.ftpgrab/tv.yml 1 ↵ 09:14:09
Thu, 14 Feb 2019 14:15:34 UTC INF Starting FTPGrab dev
Thu, 14 Feb 2019 14:15:34 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: unmarshal errors:\n line 17: cannot unmarshal !!str `gregf` into int\n line 18: cannot unmarshal !!str `gregf` into int"
server:
type: sftp
sftp:
host: example.com
port: 22
username: gregf
password: super_secret_password
sources:
- /home/gregf/downloads/tv
db:
enable: true
path: ~/.ftpgrab/tv.db
download:
output: /mnt/media/tv/unsorted
uid: gregf
gid: gregf
chmod_file: 0644
chmod_dir: 0755
include:
exclude:
since: 0001-01-01T00:00:00Z
retry: 3
hide_skipped: false
create_basedir: false
mail:
enable: false
host: localhost
port: 25
ssl: false
insecure_skip_verify: false
username:
password:
from:
to:
from ftpgrab.
@gregf uid
and gid
must be an integer (root
> 0
) and the indentation of sources
is not good either :
server:
type: sftp
sftp:
host: example.com
port: 22
username: gregf
password: super_secret_password
sources:
- /home/gregf/downloads/tv
from ftpgrab.
I tested in filezilla first and it logs in fine, with ftpgrab I get this error.
https://stackoverflow.com/questions/44269142/golang-ssh-getting-must-specify-hoskeycallback-error-despite-setting-it-to-n
from ftpgrab.
For the moment you must set insecure_skip_verify: true
to FTPGrab configuration:
server:
type: sftp
sftp:
host: example.com
port: 22
username: gregf
password: super_secret_password
sources:
- /home/gregf/downloads/tv
insecure_skip_verify: true
I will push a fix asap to fix that.
from ftpgrab.
should update the ftpgrab.yml in the basedir so people know the new options. I just noticed the updated beta1.
from ftpgrab.
@gregf Already pushed in feature/sftp branch ;) I'm updating the doc.
from ftpgrab.
Thu, 14 Feb 2019 19:24:55 UTC FTL Improper configuration error="host is required"
from ftpgrab.
server:
type: sftp
sftp:
host: example.com
port: 22
username: gregf
password:
key: /home/gregf/.ssh/id_ed25519
sources: /home/gregf/downloads/tv
timeout: 30
max_packet_size: 32768
db:
enable: true
path: /home/gregf/.ftpgrab/tv.db
download:
output: /mnt/media/tv/unsorted
uid: 1001
gid: 1001
chmod_file: 0644
chmod_dir: 0755
include:
exclude:
since: 0001-01-01T00:00:00Z
retry: 3
hide_skipped: false
create_basedir: false
mail:
enable: false
host: localhost
port: 25
ssl: false
insecure_skip_verify: false
username:
password:
from:
to:
from ftpgrab.
@gregf Wait for 5.1.0 and keep me in touch, I think you are using outdated sources.
from ftpgrab.
Related Issues (20)
- ftpgrab fails to authenticate while curl is OK with the same credentials HOT 2
- Feature Request - Add a optional configuration parameter to run custom script when sync is completed. HOT 6
- The debug log prompts to list files, but does not download the files in this folder HOT 3
- [Doc Page] Page instructions "Linux Service" is wrong. HOT 2
- Cannot create grabber HOT 1
- Error: FTL Cannot start [container] (Docker on Synology) HOT 2
- Tool can't work with server containing folders with cp1251 charset
- can't work on folder with "([." carracter HOT 1
- Docker Container Stops after Finishing HOT 2
- Folder with "." are Ignored HOT 2
- Need help with working out if FTPGrab can do this.
- Threads & Paralel Mirroing HOT 2
- Cannot connect to server: dial tcp 127.0.0.1:21: connect: connection refused HOT 1
- Discord notifications
- Cannot connect to server HOT 3
- File permissions not created properly?
- Cannot move file error: invalid cross-device link HOT 5
- Cannot create grabber. error = "Cannot open database: timeout" HOT 1
- FTPGrab freezes on Docker for Mac 4.25.0 HOT 5
- FTPS - Explicit TLS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ftpgrab.