Skip to content

Commit 302e0a3

Browse files
fix
Signed-off-by: Yaroslav Borbat <[email protected]>
1 parent c80fc78 commit 302e0a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/e2e/framework/ssh.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ func (f *Framework) SSHCommand(vmName, vmNamespace, command string, options ...S
6161
if _, err = file.WriteString(o.privateKey); err != nil {
6262
return err
6363
}
64+
if err = os.Chmod(file.Name(), 0o600); err != nil {
65+
return err
66+
}
6467

6568
res := f.d8virtualization.SSHCommand(vmName, command, d8.SSHOptions{
6669
Namespace: vmNamespace,

0 commit comments

Comments
 (0)