Comment
This commit is contained in:
parent
c5b07762d1
commit
2ac379f689
1 changed files with 3 additions and 0 deletions
|
|
@ -251,6 +251,9 @@ func setupAutomaticSSHKeys(sshContext ssh.Context) (*ssh.KeyPair, error) {
|
|||
return keyPair, nil
|
||||
}
|
||||
|
||||
// checkAndUpdateOldKeyPair handles backward compatibility with the old keypair names.
|
||||
// If the old public and private keys both exist they are renamed to the new name.
|
||||
// The return value is non-nil only if the rename happens.
|
||||
func checkAndUpdateOldKeyPair(sshContext ssh.Context) *ssh.KeyPair {
|
||||
publicKeys, err := sshContext.LocalPublicKeys()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue