Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit c6be883

Browse files
committed
Set private key permissions correctly
Resolves #59 Change-Id: If3c15cfc600a2fb4ffc9970ca46b361699fd0671
1 parent d0194e2 commit c6be883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/coder/configssh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func writeSSHKey(ctx context.Context, client *entclient.Client) error {
131131
if err != nil {
132132
return err
133133
}
134-
err = ioutil.WriteFile(privateKeyFilepath, []byte(key.PrivateKey), 400)
134+
err = ioutil.WriteFile(privateKeyFilepath, []byte(key.PrivateKey), 0400)
135135
if err != nil {
136136
return err
137137
}

0 commit comments

Comments
 (0)