Search docs/

SSH Connect

Cordova plugin to make connections and execute commands through SSH

https://github.com/JosePerez27/cordova-plugin-ssh-connect

Stuck on a Cordova issue?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Installation

ionic cordova plugin add cordova-plugin-ssh-connectnpm install @ionic-native/ssh-connect
Ionic Native Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android

Usage

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));