import { FTP } from '@awesome-cordova-plugins/ftp/ngx';
constructor(private fTP: FTP) { }
...
this.fTP.connect('ftp_host', 'ftp_user', 'ftp_password')
.then((res: any) => console.log('Login successful', res))
.catch((error: any) => console.error(error));