Skip to content

Commit 1073a2c

Browse files
scabaladmacvicar
authored andcommitted
fix: do not pass invalid key
1 parent 1a88931 commit 1073a2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libvirt/uri/ssh.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ func (u *ConnectionURI) parseAuthMethods(target string, sshcfg *ssh_config.Confi
9494
signer, err := ssh.ParsePrivateKey(sshKey)
9595
if err != nil {
9696
log.Printf("[ERROR] Failed to parse ssh key: %v", err)
97+
continue
9798
}
9899
result = append(result, ssh.PublicKeys(signer))
99100
}

0 commit comments

Comments
 (0)