Merge pull request #7206 from akiekintveld/master

Defer to SSH config files for ForwardAgent option
This commit is contained in:
Théophane Hufschmitt 2022-10-25 20:26:52 +02:00 committed by GitHub
commit 899878f77a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ std::unique_ptr<SSHMaster::Connection> SSHMaster::startCommand(const std::string
if (fakeSSH) {
args = { "bash", "-c" };
} else {
args = { "ssh", host.c_str(), "-x", "-a" };
args = { "ssh", host.c_str(), "-x" };
addCommonSSHOpts(args);
if (socketPath != "")
args.insert(args.end(), {"-S", socketPath});