Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4391 from nogoegst/openbsd-fix-chmod-ssh-key
Browse files Browse the repository at this point in the history
Do chmod on ssh key on OpenBSD too
  • Loading branch information
dgageot authored Feb 12, 2018
2 parents 5048437 + a24431d commit f136d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmachine/ssh/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (kp *KeyPair) WriteToFile(privateKeyPath string, publicKeyPath string) erro

// windows does not support chmod
switch runtime.GOOS {
case "darwin", "linux", "freebsd":
case "darwin", "freebsd", "linux", "openbsd":
if err := f.Chmod(0600); err != nil {
return err
}
Expand Down

0 comments on commit f136d8e

Please sign in to comment.