Skip to content
onlinegatewaydkPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sftp

This tool can download and upload files to a remote SFTP server.

Installation

$ make

Usage

Parameter Description
server FQDN to the remote server
username Username
password Password
i Set path to SSH private key
F Set path to SSH config
remote-file Full path to remote file
output-file Full path to output file (download)
input-file Full path to input file (upload)
overwrite-file Overwrite file
port Remote server port

Use user@server

You can also use $ sftp --remote-file remotefile.csv --output-file remotefile.csv user@server

Please be aware that user@server needs to be at the end of the argument list due to drawbacks in the Go flag package.

Download

$ sftp --server example.com --username test --password test --remote-file remotefile.csv --output-file remotefile.csv

Upload

$ sftp --server example.com --username test --password test --remote-file remotefile.csv --input-file remotefile.csv

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址