'Execute a remote command and return the exit status'

def get_status(self, command, source_profile=True):

    channel = self.transport.open_session()
    if source_profile:
        command = ('source    /etc/profile    &&    %s' % command)
    channel.exec_command(command)
    self.__last_status = channel.recv_exit_status()
    return self.__last_status
