How to get/put file using SFTP node

Hi,
I have installed xampp as a file server.
I used the List method of SFTP node to see the file and directory information at Remote Path:

sftp-node

In the Method list of this node, there are many other methods such as Get, Put, ...

sftp-node-1

I have investigated and tried config but don't work:

[{"id":"e9c2550a.80a8c8","type":"tab","label":"Get/Put using SFTP","disabled":false,"info":""},{"id":"f3f32b35.475718","type":"inject","z":"e9c2550a.80a8c8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":190,"y":180,"wires":[["f14e96bb.8d2bc8"]]},{"id":"5f02d6d6.973f98","type":"debug","z":"e9c2550a.80a8c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":870,"y":180,"wires":[]},{"id":"f14e96bb.8d2bc8","type":"SFTP-main","z":"e9c2550a.80a8c8","path":"/","method":"get","remoteFilePath":"/xampp/htdocs/applications.html","localFilePath":"/Temp/AAA","remoteDestPath":"/","useCompression":"","encoding":"utf8","mode":"","recursive":"false","server":"e800b82d.2c5468","x":350,"y":180,"wires":[["4f38a4ba.ba46cc","153e0b73.d3bcb5"]]},{"id":"e372849a.99b548","type":"file","z":"e9c2550a.80a8c8","name":"","filename":"","appendNewline":true,"createDir":true,"overwriteFile":"true","encoding":"none","x":730,"y":180,"wires":[["5f02d6d6.973f98"]]},{"id":"4f38a4ba.ba46cc","type":"debug","z":"e9c2550a.80a8c8","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":480,"y":120,"wires":[]},{"id":"153e0b73.d3bcb5","type":"change","z":"e9c2550a.80a8c8","name":"","rules":[{"t":"set","p":"filename","pt":"msg","to":"payload.path","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":180,"wires":[["e372849a.99b548","6fa51884.744708"]]},{"id":"3b6af2c3.9d751e","type":"comment","z":"e9c2550a.80a8c8","name":"Get","info":"","x":350,"y":140,"wires":[]},{"id":"6fa51884.744708","type":"debug","z":"e9c2550a.80a8c8","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":720,"y":120,"wires":[]},{"id":"6986aa7b.294dd4","type":"inject","z":"e9c2550a.80a8c8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":190,"y":360,"wires":[["298c8460.34decc"]]},{"id":"298c8460.34decc","type":"SFTP-main","z":"e9c2550a.80a8c8","path":"/","method":"put","remoteFilePath":"/xampp/htdocs/","localFilePath":"/Temp/Data/","remoteDestPath":"/","useCompression":"","encoding":"utf8","mode":"","recursive":"false","server":"e800b82d.2c5468","x":350,"y":360,"wires":[["b0a18be1.a66a08"]]},{"id":"b0a18be1.a66a08","type":"debug","z":"e9c2550a.80a8c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":510,"y":360,"wires":[]},{"id":"65c833f.dd23ecc","type":"comment","z":"e9c2550a.80a8c8","name":"Put","info":"","x":350,"y":320,"wires":[]},{"id":"e800b82d.2c5468","type":"SFTP-credentials","z":"","host":"127.0.0.1","port":"22","username":"admin","password":"20160605"}]

If you know how to use Get, Put method of this node please let me know.
Thanks!

as its an SFTP node I would google the generic command line sftp command and read up on that first.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.