added class to open ssh connection using libssh and write data to ssh channel

This commit is contained in:
vladimir.kuznetsov 2022-12-20 13:43:46 +03:00
parent e481bd4ec5
commit c8085a368f
7 changed files with 271 additions and 137 deletions

20
client/core/sshclient.h Normal file
View 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