Page 1 of 1

SFTP Upload don't work

Posted: Wed Oct 25, 2023 9:44 am
by fingus
I didn´t geht SFTP Upload to work with hURL-Plugin:

Username is in Format: user@domain.de
Server Require Port 22 for SFTP
SFTP-Adress is ssh.domain.de

Code: Select all

@require "hurl"
dateip$ = "/home/user/binary"

UploadFile("sftp://user@domain.de:password@ssh.domain.de:22/"..dateip$, { File = dateip$, ssl = true, adapter = "hurl", verbose = true })
I tried different things (with and without ssl = true..etc) but it doesn´t work, where is my fault?

Connecting to that sftp with that credentials with filezilla works.

Re: SFTP Upload don't work

Posted: Wed Oct 25, 2023 11:13 am
by Flinx
Be more precise. What error message?

The syntax of your line seems to be correct, I changed it for one of my servers and it did work. But you have two / at the beginning of the destination path.
Does the paths /home/user/ exist local and remote?

Re: SFTP Upload don't work

Posted: Thu Oct 26, 2023 6:58 am
by fingus
No specific error message on linux, it just stops with error.
Path is local where the File to Upload is located

Re: SFTP Upload don't work

Posted: Sun Oct 29, 2023 5:06 pm
by airsoftsoftwair
fingus wrote: Thu Oct 26, 2023 6:58 am No specific error message on linux, it just stops with error.
Have you tested if it works on Windows?