60 SSHConnection(
const std::string& sshHost,
const std::string& sshPort,
61 const std::string& login,
const std::string& keyPath,
62 const std::string& sshPath);
77 getSshKeyPath()
const;
80 getSshOptions()
const;
83 setSshHost(
const std::string& host);
86 setSshPath(
const std::string& path);
89 setSshPort(
const std::string& port);
92 setSshPort(
const int port);
95 setSshLogin(
const std::string& login);
98 setSshKeyPath(
const std::string& path);
101 setSshOptions(
const std::string& options);
125 const std::string& remoteHost,
126 const std::string& localPortFrom,
127 const std::string& remotePortTo,
128 const std::string& remotePortFrom,
129 const std::string& localPortTo,
130 const bool createTo =
true,
131 const bool createFrom =
true,
132 const std::string& sshPath =
"/usr/bin/ssh",
133 const std::string& sshPort =
"22",
134 const std::string& login = userLogin(),
135 const std::string& keyPath = userKey());
139 const std::string& remoteHost,
140 const std::string& localPortFrom,
141 const std::string& remotePortTo,
142 const bool createTo =
true,
143 const std::string& sshPath =
"/usr/bin/ssh",
144 const std::string& serverPort =
"22",
145 const std::string& login = userLogin(),
146 const std::string& keyPath = userKey());
157 getRemoteHost()
const;
160 getLocalPortFrom()
const;
163 getLocalPortTo()
const;
166 getRemotePortFrom()
const;
169 getRemotePortTo()
const;
172 setRemoteHost(
const std::string& host);
175 setLocalPortFrom(
const std::string& port);
178 setLocalPortFrom(
const int port);
181 setRemotePortTo(
const std::string& port);
184 setRemotePortTo(
const int port);
187 setRemotePortFrom(
const std::string& port);
190 setRemotePortFrom(
const int port);
193 setLocalPortTo(
const std::string& port);
196 setLocalPortTo(
const int port);
199 setWaitingTime(
const unsigned int time);
202 createTunnelTo(
const bool create);
205 createTunnelFrom(
const bool create);
209 static std::string cmdFormat;
210 static std::string cmdFormatDefault;
211 static std::string localFormat;
212 static std::string remoteFormat;
213 static std::string keyFormat;
217 unsigned int waitingTime;
218 std::string localPortTo;
219 std::string localPortFrom;
220 std::string remoteHost;
221 std::string remotePortTo;
222 std::string remotePortFrom;
234 SSHCopy(
const std::string& sshHost,
235 const std::string& remoteFilename,
236 const std::string& localFilename);
244 std::string remoteFilename;
245 std::string localFilename;
Definition: SSHTunnel.hh:232
Definition: SSHTunnel.hh:120
Definition: SSHTunnel.hh:56