Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for .pem identity type #233

Open
willis7 opened this issue Jun 8, 2016 · 5 comments
Open

Support for .pem identity type #233

willis7 opened this issue Jun 8, 2016 · 5 comments
Labels

Comments

@willis7
Copy link

willis7 commented Jun 8, 2016

Amazon EC2 instances use .pem files as the identity. I am getting a reject HostKey: error when trying to use that type of file.

remotes {
    sandbox {
        host = 'ec2-XX-XXX-XXX-XX.eu-west-1.compute.amazonaws.com'
        user = 'ec2-user'
        identity = file("${System.properties['user.home']}/.ssh/devtools.pem")
    }
}

Am I using it incorrectly or is this type not supported. I am trying to replicate:
ssh -i ~/.ssh/devtools.pem [email protected]

@int128
Copy link
Owner

int128 commented Jun 9, 2016

Would you check if ~/.ssh/known_hosts contains the host key of EC2 instance? reject HostKey: means host key, not user key.

@int128 int128 added the question label Jun 9, 2016
@willis7
Copy link
Author

willis7 commented Jun 9, 2016

I can see both the public ip and public dns, however I notice they have the encryption type ecdsa-sha2-nistp256 whereas the rest have ssh-rsa.

@int128
Copy link
Owner

int128 commented Jun 30, 2016

Any updates? The plugin supports both RSA and ECDSA type of host key.

@willis7
Copy link
Author

willis7 commented Jun 30, 2016

I couldn't get it to work unfortunately

@int128
Copy link
Owner

int128 commented Sep 6, 2016

Now the plugin supports the feature to automatically add a host key to known_hosts. Please try knownHosts = addHostKey(file(...)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants