Workspace 6.21.5
Public Member Functions | List of all members
SshSession Class Reference

#include <SSH/SSHPlugin/sshsession.h>

Public Member Functions

 SshSession ()
 
 SshSession (const SshSession &)
 
virtual ~SshSession ()
 
bool getFile (const QString &filePath, const QString &destinationPath)
 
bool isLoggedIn () const
 
bool login (const QString &host, const QString &user, const QString &pwd, int port=22, const QString &publicKeyFile="", const QString &privateKeyFile="", const QString &passphrase="")
 
void logout ()
 
SshSessionoperator= (const SshSession &)
 
bool sendCommand (const QString &command, QString &output, bool removeTrailingNewLine=true)
 
bool sendFile (const QString &filePath, const QString &destinationPath)
 

Detailed Description

Represents an ssh session

Constructor & Destructor Documentation

◆ SshSession() [1/2]

SshSession ( )
default

◆ SshSession() [2/2]

SshSession ( const SshSession rhs)

◆ ~SshSession()

~SshSession ( )
virtualdefault

Member Function Documentation

◆ getFile()

bool getFile ( const QString &  filePath,
const QString &  destinationPath 
)

◆ isLoggedIn()

bool isLoggedIn ( ) const

◆ login()

bool login ( const QString &  host,
const QString &  user,
const QString &  pwd,
int  port = 22,
const QString &  publicKeyFile = "",
const QString &  privateKeyFile = "",
const QString &  passphrase = "" 
)

◆ logout()

void logout ( )

◆ operator=()

SshSession & operator= ( const SshSession rhs)

◆ sendCommand()

bool sendCommand ( const QString &  command,
QString &  output,
bool  removeTrailingNewLine = true 
)

◆ sendFile()

bool sendFile ( const QString &  filePath,
const QString &  destinationPath 
)