mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-26 06:35:31 +00:00
fix ssh when you have too many keys
IdentitiesOnly=yes disables sending of irrelevant keys
This commit is contained in:
parent
a44473e4a4
commit
d2c7f41bb0
@ -422,6 +422,7 @@ func (inst *Instance) CreateSSHCommand(args ...string) *Command {
|
||||
args1 := []string{"ssh", "-i", inst.Sshkey, "-p", strconv.Itoa(inst.Port),
|
||||
"-o", "ConnectionAttempts=10", "-o", "ConnectTimeout=10",
|
||||
"-o", "BatchMode=yes", "-o", "UserKnownHostsFile=/dev/null",
|
||||
"-o", "IdentitiesOnly=yes",
|
||||
"-o", "StrictHostKeyChecking=no", "root@localhost"}
|
||||
return inst.CreateCommand(append(args1, args...)...)
|
||||
}
|
||||
@ -430,6 +431,7 @@ func (inst *Instance) CreateSCPCommand(from, to string) *Command {
|
||||
return inst.CreateCommand("scp", "-i", inst.Sshkey, "-P", strconv.Itoa(inst.Port),
|
||||
"-o", "ConnectionAttempts=10", "-o", "ConnectTimeout=10",
|
||||
"-o", "BatchMode=yes", "-o", "UserKnownHostsFile=/dev/null",
|
||||
"-o", "IdentitiesOnly=yes",
|
||||
"-o", "StrictHostKeyChecking=no",
|
||||
from, "root@localhost:"+to)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user