int128 / int128/gradle-ssh-plugin

Support for .pem identity type

Open
#233 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Groovy
Stars
325
Forks
59
Avg merge
5h 29m
Merged PRs (30d)
6

Description

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 ec2-user@ec2-XX-XXX-XXX-XX.eu-west-1.compute.amazonaws.com

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied Gradle SSH configuration with the .pem identity and compare it with the shown ssh command. Trace the plugin's identity handling to determine whether PEM input is supported; done means the configuration connects to the EC2 host without the reject HostKey error.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.