Added trailing space to the private key
This commit is contained in:
parent
657104bf91
commit
366102b55b
1 changed files with 2 additions and 1 deletions
|
|
@ -26,7 +26,8 @@ func (s *Services) AddPrivateKey() error {
|
|||
return err
|
||||
}
|
||||
|
||||
if err := writeFile(`${HOME}/.ssh/` + s.keyFileName, s.cfg.PrivateKey, 0400); err != nil {
|
||||
privateKey := strings.TrimSpace(s.cfg.PrivateKey) + "\n"
|
||||
if err := writeFile(`${HOME}/.ssh/` + s.keyFileName, privateKey, 0400); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue