This page explains the URL Adapter in Bridge context. If you were looking for the same information regarding the PAS Designer, refer to URL Adapter in the Designer guide.
Using the SFTP (not to be confused with FTPS) protocol (see also http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol) is very similar to FTP but there are some differences, most notable the options. If SFTP is used with private and/or public keys, the tagged value options on the deployment dependency must contain a string such as
CURLOPT_SSH_PRIVATE_KEYFILE=../resource/myPrivateKey CURLOPT_SSH_PUBLIC_KEYFILE=../resource/myPublicKey
Using the key pair myPrivateKey and myPublicKey allows you to access the server without having to authenticate the client (your E2E Bridge Service). The key files are uploaded to the resource repository using the E2E Bridge to upload mechanism. The key files are saved into the shared resources directory of the deployed service configuration.
The private and public key files must have the OpenSSH format. If you use puttygen to generate keys, the OpenSSH keys must get extracted because puttygen stores private and public keys into one file. A description how to do this can be found in the PuTTY User Manual.
Other supported SFTP options are:
|
Option |
Description |
|---|---|
|
|
Pass one of the following literals:
|
|
|
Pass a String of 32 hexadecimal digits. The string should be the 128 bit MD5 checksum of the remote host's public key. The Bridge will reject the connection to the host unless the md5 sums match. This option refers only for scp and sftp transfers. |
|
|
Password protecting the private key file |
Compared to FTP and FTPS, SFTP uses different commands. The following shows an extract of possible quote commands SFTP uses:
|
Command |
Description |
|---|---|
|
|
The |
|
|
The |
|
|
The |
|
|
The |
|
|
The |
|
|
The |
|
|
The |
|
|
The |
|
|
The |
You can find a complete list of supported commands on the cURL haxx site.
Tagged Values
Find below a list of relevant tagged values, if the URL adapter is used with the SFTP protocol.
Default values used when an option is not explicitly set are written in bold.
|
Tagged Value |
Description |
Values |
|
|---|---|---|---|
|
protocol |
Transport protocol. |
sftp |
|
|
method |
SFTP method. |
get, post, put, list |
|
|
port |
Machine port number the service is binding to. This port number can be given at service level only. |
|
|
|
path |
SFTP path for the SOAP request. |
|
|
|
Advanced |
|||
|
options |
Native cURL options. |
cURL Options |
|
|
Authentication |
|||
|
user |
Username/password. |
|
|
|
Proxy |
|||
|
proxyType |
Type of the proxy. |
HTTP, SOCKS5 |
|
|
proxyURL |
URL of the proxy server. |
|
|
|
proxyUser |
Proxy user. |
|
|
SFTP Troubleshooting
|
Error |
Possible Reason |
Solution |
|---|---|---|
|
Upload failed, error message: |
The path is not correct. |
In SFTP, the path has to be set absolutely or using the tilde ( ~ ) for the user home path, e.g. |