David Vasandani

SFTP with Curl

by David Vasandani

This HN comment enlightened me.

---

To download a file:

curl -u david:$(op item get flounder --fields label=password) \
  -O sftp://flounder.online:2024/index.gmi

To upload a file:

curl -u david:$(op item get flounder --fields label=password) \
  sftp://flounder.online:2024 --upload-file index.gmi