-#!/usr/bin/env python
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
# -*- coding: utf-8 -*-
#
self._ssh_passauth = False
''' set parameters '''
- [self._ssh_username, self._ssh_hostname, self._ssh_hostport] = self._u.parse_remote_desc(remote_desc)
+ [self._ssh_username, self._ssh_hostname,
+ self._ssh_hostport] = self._u.parse_remote_desc(remote_desc)
def exec_cmd(self, cmdline):
args = shlex.split(cmdline)
stdin, stdout, stderr = sshc.exec_command(cmdline)
result = stdout.read().splitlines()
return result
-
+
def set_remote_sshkey(self, remote_sshkey):
self._remote_sshkey = remote_sshkey
self._ssh_keyauth = True
def set_remote_password(self, remote_password):
self._remote_password = remote_password
self._ssh_passauth = True
-
-
\ No newline at end of file