Skip to main content

SSH Connect

Cordova plugin to make connections and execute commands through SSH

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.


$ npm install cordova-plugin-ssh-connect $ npm install @ionic-native/ssh-connect $ ionic cap sync

Supported Platforms#

  • Android



Learn more about using Ionic Native components in React


import { SSHConnect } from '@ionic-native/ssh-connect/ngx';

constructor(private sshConnect: SSHConnect) { }

this.sshConnect.connect('user', 'password', 'host', port)  .then(resp => console.log(resp))  .catch(error => console.error(error));
this.sshConnect.executeCommand('command')  .then(resp => console.log(resp))  .catch(error => console.error(error));
this.sshConnect.disconnect()  .then(resp => console.log(resp))  .catch(error => console.error(error));