This commit is contained in:
@ -165,13 +165,13 @@ namespace dropshell
|
||||
return false;
|
||||
|
||||
std::stringstream ssh_cmd;
|
||||
ssh_cmd << "ssh -p " << ssh_info.port << " " << (hasFlag(mode, cMode::Interactive) ? "-tt " : "")
|
||||
<< ssh_info.user << "@" << ssh_info.host;
|
||||
ssh_cmd << "ssh -p " << ssh_info.get_port() << " " << (hasFlag(mode, cMode::Interactive) ? "-tt " : "")
|
||||
<< ssh_info.get_user() << "@" << ssh_info.get_host();
|
||||
|
||||
std::string remote_bb64_path;
|
||||
|
||||
if (!hasFlag(mode, cMode::NoBB64))
|
||||
remote_bb64_path = remotepath(ssh_info.server_ID, ssh_info.user).agent() + "/bb64";
|
||||
remote_bb64_path = remotepath(ssh_info.get_server_ID(), ssh_info.get_user()).agent() + "/bb64";
|
||||
|
||||
bool rval = execute_local_command(
|
||||
"", // local directory to run in
|
||||
@ -237,4 +237,15 @@ namespace dropshell
|
||||
return cmdstr;
|
||||
}
|
||||
|
||||
bool sSSHInfo::valid() const
|
||||
{
|
||||
if (host.empty() || user.empty() || port.empty() || server_ID.empty() || user_dir.empty())
|
||||
return false;
|
||||
|
||||
if (atoi(port.c_str()) == 0)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace dropshell
|
Reference in New Issue
Block a user