From 1d849ab4d892af13a249f75628790b47e42b7c74 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 30 Sep 2021 15:05:40 +0000 Subject: vm/gce: allow ssh-rsa from Run() Allow ssh-rsa not only from getSerialPortOutput(), but also from Run(). --- vm/gce/gce.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vm/gce') diff --git a/vm/gce/gce.go b/vm/gce/gce.go index 46e7326a6..93a96c5e8 100644 --- a/vm/gce/gce.go +++ b/vm/gce/gce.go @@ -224,6 +224,8 @@ func (inst *instance) Run(timeout time.Duration, stop <-chan bool, command strin conAddr := fmt.Sprintf("%v.%v.%v.syzkaller.port=1@ssh-serialport.googleapis.com", inst.GCE.ProjectID, inst.GCE.ZoneID, inst.name) conArgs := append(vmimpl.SSHArgs(inst.debug, inst.gceKey, 9600), conAddr) + // TODO: remove this later (see also a comment in getSerialPortOutput). + conArgs = append(conArgs, "-o", "HostKeyAlgorithms=+ssh-rsa") con := osutil.Command("ssh", conArgs...) con.Env = []string{} con.Stdout = conWpipe -- cgit mrf-deployment