Difficulty: expert
Content
Learning Objectives
After reading this article, you’ll be able to:
What SFTP is and when to use it
Setup connection to SFTP server in WPM
Configure SSH key pair authentication
What is SFTP / when to use SFTP
SFTP stands for SSH File Transfer Protocol. This is a method of transferring files between two entities. It is literally nothing else than having one entity (system or user) transferring a file to a server, which in turn can be collected by another entity (system or user). Or to make it even more simple: image if you would put a file on a folder on your desktop, which would then be collected by another user. It is as simple as that.
SFTP is most commonly used in the following scenario’s:
Data should be shared in a common file format. As the file is placed on a server, most commonly files like CSV or XML are used. But PDF, Word or image files are also commonly used. As these are common files, users can more easily interact with them and understand what is happening.
Debugging needs to be easy. Seeing as there are two actions (entity > server, server > entity), it is quite easy to debug where the error is happening. If an expected file is not on the server, you know the delivering party made an error. If the file is on the server, but not (correctly) collected by the receiving entity, you know that something is going wrong with collection.
Large datasets need to be shared. A webservice is most commonly used for short transactions. Large datasets are not suited to directly be transferred between systems, as timeouts might occur. These limitations are less for SFTP. So when a large transferal of data is necessary, SFTP is the better option.
Considerations
Please take note of the following considerations in regards to SFTP:
Next to SFTP, Workplace also has support for FTPs. Please do not use this unless there is no other option. Support for FTPs is becoming worse in the industry, so support will also take a decline. If FTPs is used, the other steps are similar, although you might need to specify the kind of FTPs in FileZilla (please refer to documentation online to set this up).
Workplace does not accept self-signed certificates. This is for our own and the client’s security.
Workplace supports certificate authentication. This possibility is still in early development and should only be conducted under the guidance of a Spacewell consultant. For that reason, it falls outside of the scope of this page (for now).
As is with any server, there might be firewalls in place (this only applies when the server is not hosted by Spacewell). This might mean that the IP address of your office as well as that of Workplace need to be whitelisted.
You can find the IP address of your office when searching “what is my IP” on Google
Contact you Spacewell consultant to request the SOURCE NAT ip
Import can only be run once every 15 minutes. If you set a higher frequency, this will be ignored.
Troubleshooting checklist
- Were you able to connect to the SFTP server in FileZilla?
- Is there a firewall? If so, is our IP address whitelisted?
- Is there a self-signed certificate, or is this by a trusted party?
- In regards to incoming import: Did the received file change over time?
Summary
Exercise
- N/A
Search