added class to open ssh connection using libssh and write data to ssh channel
This commit is contained in:
parent
e481bd4ec5
commit
c8085a368f
7 changed files with 271 additions and 137 deletions
20
client/core/sshclient.h
Normal file
20
client/core/sshclient.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef SSHCLIENT_H
|
||||
#define SSHCLIENT_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "sshsession.h"
|
||||
|
||||
using namespace amnezia;
|
||||
|
||||
class SshClient : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SshClient(QObject *parent = nullptr);
|
||||
~SshClient();
|
||||
|
||||
std::shared_ptr<SshSession> getSession();
|
||||
};
|
||||
|
||||
#endif // SSHCLIENT_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue