Use libssh for server setup script
That gives some advantages in supported key types.
This commit is contained in:
parent
0ec0cb1b19
commit
a87610c856
3 changed files with 292 additions and 140 deletions
|
@ -5,6 +5,10 @@
|
|||
#include <QObject>
|
||||
#include "sshconnection.h"
|
||||
#include "sshremoteprocess.h"
|
||||
|
||||
#include <libssh/libssh.h>
|
||||
#include <libssh/sftp.h>
|
||||
|
||||
#include "debug.h"
|
||||
#include "defs.h"
|
||||
|
||||
|
@ -75,6 +79,9 @@ public:
|
|||
|
||||
private:
|
||||
|
||||
ErrorCode copyFileToRemoteHost(ssh_session& ssh, sftp_session& sftp, std::string local_path, std::string remote_path, std::string file_desc);
|
||||
ErrorCode connectToHost(const ServerCredentials &credentials, ssh_session& session);
|
||||
|
||||
ErrorCode installDockerWorker(const ServerCredentials &credentials, DockerContainer container);
|
||||
ErrorCode prepareHostWorker(const ServerCredentials &credentials, DockerContainer container, const QJsonObject &config = QJsonObject());
|
||||
ErrorCode buildContainerWorker(const ServerCredentials &credentials, DockerContainer container, const QJsonObject &config = QJsonObject());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue