
-password - The password if we wish to use user name login.
-user - The user name if we wish to use user name login. -port - The TCP/IP port number for the server to listen upon. -bucket - The name of the bucket to work against. There are some command line flags available to us. Once installed, we run the application using: node sftp-gcs.js -bucket=my-bucket Since it is implemented in JavaScript with Node.js, you will also need to have Node.js installed. To use, you would clone the repository and run the application. The sftp-gcs program is supplied in source form via Github. If you have applications or tools that currently expect to work with file data using SFTP then this may be an excellent component to bring GCS into your story. From an SFTP client perspective, it behaves identically to working with any other hierarchical file system with the distinction that the data is being backed by GCS. Requests to put files, get files, list files and other file operations are then executed against GCS. This means that SFTP clients can connect to our SFTP server (which we have called sftp-gcs). Using this library, we wrote a sample which exposes itself as an SFTP server but uses GCS as the back-end storage system. One such library is called ssh2 and is available for Node.js. The SFTP specification has some excellent open source library implementations which means that we can write both client and server SFTP implementations. This means that whatever data you are moving, it can not be examined on the wire. SFTP exchanges all data with full encryption of the in-flight traffic. SFTP is an open specification for interacting with a remote file system to store, retrieve and list files in a hierarchical file system. In this article we describe access to GCS via the Secure File Transfer Protocol (SFTP) and the corresponding SFTP client tools. What is not provided by Google in the out of the box GCS story is the ability to access GCS data through any of the File Transfer Protocols (FTP). Data can automatically be ingested if it is web addressable using the Storage Transfer product.
Command line tools such as gsutil also provide scripting access. GCS provides a variety of programming language APIs that can be used by custom applications and many of Google’s products are pre-built to produce and consume data to and from GCS. The storage is cheap and provides excellent availability and durability. Files can be uploaded to GCS and subsequently retrieved. Google Cloud Storage (GCS) provides blob storage for data. An additional article has been written on using SFTPGo in conjunction with GCS. 2022–07: Since first publishing this article, a new player in the open source domain used to provide SFTP access to GCS has emerged.