kola/devshell: prefer public key authentication
By default, SSH will try other auth mechanisms before public key
authentication. But here we know that the latter is what will work. So
tell SSH to prefer that. This makes SSH'ing into the guest faster, but
it's probably not noticeable.
@@ -498,6 +498,7 @@ func (sc *sshClient) start() {
"-i", sc.privKey,
"-o", "StrictHostKeyChecking=no",
"-o", "CheckHostIP=no",
+ "-o", "PreferredAuthentications=publickey",
"-p", sc.port,
fmt.Sprintf("%s@%s", sc.user, sc.host),
}
