'Connect to the ASUS-WRT SSH server.'

def connect(self):

    from pexpect import pxssh
    self._ssh = pxssh.pxssh()
    if self._ssh_key:
        self._ssh.login(self._host, self._username, ssh_key=self._ssh_key, port=self._port)
    else:
        self._ssh.login(self._host, self._username, password=self._password, port=self._port)
    super(SshConnection, self).connect()
