Skip to content

Commit

Permalink
fix type mismatch.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Apr 20, 2018
1 parent 4be5f72 commit 95e715c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/actions/connect.go
Expand Up @@ -99,9 +99,9 @@ func (e *ConnectAction) SshAgentAddPemKey(pemFilepath string) error {
if x509.IsEncryptedPEMBlock(block) {
//inform the user that the key is encrypted.
passphrase := utils.StdinQuery(fmt.Sprintf("The key at %v is encrypted and requires a passphrase. Please enter it below:", pemFilepath))
privateKeyData, err = ssh.ParseRawPrivateKeyWithPassphrase(block, []byte(passphrase))
privateKeyData, err = ssh.ParseRawPrivateKeyWithPassphrase(block.Bytes, []byte(passphrase))
} else {
privateKeyData, err = ssh.ParseRawPrivateKey(block)
privateKeyData, err = ssh.ParseRawPrivateKey(block.Bytes)
}

// register the privatekey with ssh-agent
Expand Down

0 comments on commit 95e715c

Please sign in to comment.