Server ssh works!!

This commit is contained in:
Your Name
2025-04-25 22:00:41 +12:00
parent 1d8502d71a
commit 5d7a22794d
6 changed files with 84 additions and 23 deletions

View File

@ -80,7 +80,9 @@ class service_runner {
// 4. copy it to the local user_dir/backups folder
bool backup();
// launch an interactive ssh session on a server or service
// replaces the current dropshell process with the ssh process
void interactive_ssh_service();
private:
std::string m_server_name;
@ -106,6 +108,7 @@ class service_runner {
static bool execute_local_command_and_capture_output(const std::string& command, std::string & output);
};
void interactive_ssh(const std::string & server_name, const std::string & command);
} // namespace dropshell