* Connects to SFTP server * @param host Hostname of the server * @param port port numer * @param username Username * @param keyFile Password or private key file to authenticate the server * @param passphrase Passphrase for keyfile * @param onSuccess Callback function on succ
(host: String, port: Number, username: String, keyFile: String, passphrase: String, onSuccess: () => void, onFail: (err: any) => void)
| 47 | * @param onFail Callback function on error returns error object |
| 48 | */ |
| 49 | connectUsingKeyFile(host: String, port: Number, username: String, keyFile: String, passphrase: String, onSuccess: () => void, onFail: (err: any) => void): void; |
| 50 | |
| 51 | /** |
| 52 | * Gets file from the server. |