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

19
client/core/sshclient.cpp Normal file
View file

@ -0,0 +1,19 @@
#include "sshclient.h"
#include <libssh/libssh.h>
#include <libssh/sftp.h>
SshClient::SshClient(QObject *parent) : QObject(parent)
{
ssh_init();
}
SshClient::~SshClient()
{
ssh_finalize();
}
std::shared_ptr<SshSession> SshClient::getSession()
{
return std::make_shared<SshSession>();
}