Christian,
Could you link me to an example that shows MBS CURL using SCP? I appreciate it.
Thank you
Mike
Christian,
Could you link me to an example that shows MBS CURL using SCP? I appreciate it.
Thank you
Mike
just use normal upload example and an url with sftp:// prefix.
e.g. check the CURLS sftp upload.rbp example project in CURL examples in the folder SFTP.
Thanks Christian. I’ll try that.
Christian I just had time to get back to this. I am not quite looking for SFTP right now, but SCP. SCP uses SSH tunneling to accomplish file transfer. Do you have an implementation of SCP in the plugins?
Thanks,
Mike
This is SFTP (SSH File Transfer Protocol).
did you see wikipedia?
http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol
the normal FTP with SSL is called FTPS.
SFTP != SCP
That being said I’ve never used a server where one worked and the other did not.
well, most people ask for SSH file transfer, but don’T want scp, but sftp.
Anyway, for CURL, scp:// url should also work.
Sorry for the confusion.
[quote=166212:@Christian Schmitz]well, most people ask for SSH file transfer, but don’T want scp, but sftp.
Anyway, for CURL, scp:// url should also work.
Sorry for the confusion.[/quote]
I raise your SFTP Wikepedia with SCP http://en.wikipedia.org/wiki/Secure_copy
SFTP is not SCP.
Do you have SCP implemented?
Thanks!
[quote=166212:@Christian Schmitz]well, most people ask for SSH file transfer, but don’T want scp, but sftp.
Anyway, for CURL, scp:// url should also work.
Sorry for the confusion.[/quote]
I am not most people as I am a network expert.
Thanks
[quote=166207:@Phillip Zedalis]SFTP != SCP
That being said I’ve never used a server where one worked and the other did not.[/quote]
I am not in control of the server and unfortunately this large datacenter switch manufacturer has an SFTP bug with their shell implementation forcing me to use SCP at this time.
Thanks Phillip!
[quote=166212:@Christian Schmitz]well, most people ask for SSH file transfer, but don’T want scp, but sftp.
Anyway, for CURL, scp:// url should also work.
Sorry for the confusion.[/quote]
Not a problem at all
did you try the upload example with scp url?
I have not but I will try that. Thanks Christian. SCP requires source and destination folders so I am not sure it will work, but Ill try. Thanks
with CURL, the source is what you provide. Via file, via events or via memory.
The destination is the scp:// url. So you can call SetInputData for example to provide data for upload.
Thanks Christian Ill try that. Thanks!
Christian I am getting an libcurl error 79 still using the following. Any tips as I am trying to copy all files in a directory from the server. I am still not sure where to put the local folder to copy from the server to me.
Thanks!
dim e as integer
dim d as new UploadCURL
d.OptionUsername = “admin”
d.OptionPassword = “arista”
//d.InputData = SCPCommand
d.OptionURL=“scp://10.10.5.165/mnt/flash/schedule/tech-support/*”
d.OptionUpload=False
d.OptionVerbose=true
e=d.Perform
MsgBox "Result: "+str(e)
you can’T copy all files from a folder.
You have to get folder listing and than do a transfer for each file.
[quote=166303:@Christian Schmitz]you can’T copy all files from a folder.
You have to get folder listing and than do a transfer for each file.[/quote]
Thanks Christian I will try specifically naming the files. Native SCP allows the asterisk for “all files” FWIW.
Thanks!
Mike
I just tried it myself. Simply changing URL to scp and it works