Skip to content

Commit

Permalink
ssh-tpm-keygen: save pubkey as 0600
Browse files Browse the repository at this point in the history
Signed-off-by: Morten Linderud <morten@linderud.pw>
  • Loading branch information
Foxboron committed Aug 6, 2023
1 parent 81f5cef commit 1949a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ssh-tpm-keygen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func main() {
log.Fatal(err)
}
pubkeyFilename := filename + ".pub"
if err := os.WriteFile(pubkeyFilename, ssh.MarshalAuthorizedKey(sshKey), 0644); err != nil {
if err := os.WriteFile(pubkeyFilename, ssh.MarshalAuthorizedKey(sshKey), 0600); err != nil {
log.Fatal(err)
}

Expand Down

0 comments on commit 1949a9d

Please sign in to comment.