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
19
client/core/sshclient.cpp
Normal file
19
client/core/sshclient.cpp
Normal 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>();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue