bastion does not seems to work and returns permission denied.

Open
#269 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
github, helm, kubernetes

Research direction

Start by comparing the chart's documented port 2222 with the reported SSH command using port 2211, then inspect values.yaml and the github-authorized-keys and bastion containers. Review the SSH pre-authentication logs and configured GitHub team, API key, and user keys. Done means the documented connection succeeds with the configured GitHub key and username.

Written by the indexing model from the issue text.

Description

I used the bastion incubator helm chart from here and deployed on K8s and tried to connect to it using below commands but getting permission denied always.

1. Get the application URL by running these commands:
export POD_NAME=$(kubectl get pods --namespace default -l "app=bastion-bastion" -o jsonpath="{.items[0].metadata.name}")
echo "Run 'ssh -p 2222 127.0.0.1' to use your application"
kubectl port-forward $POD_NAME 2222:22

Trying to connect like below:

➜ ssh -p 2211 [email protected]
The authenticity of host '[127.0.0.1]:2211 ([127.0.0.1]:2211)' can't be established.
RSA key fingerprint is SHA256:S44NDDfev4x8NCJHMVJgYXrhx4OS/SoYGer5TMGUgqg.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[127.0.0.1]:2211' (RSA) to the list of known hosts.
[email protected]: Permission denied (publickey).

  • I checked the Github API Key is correct
  • I checked the SSH key in Github is there as well
  • I also checked the users created in github-authorized-keys & bastion containers as well from Github team that is configured in values.yaml file

Is there anything missing from my end? can you point me somewhere to fix the issue?

Logs:
Connection closed by authenticating user azizzoaib786 127.0.0.1 port 59712 [preauth]
Connection closed by authenticating user azizzoaib786 127.0.0.1 port 59730 [preauth]

Dominant language
Mustache
Stars
160
Forks
60
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from cloudposse/charts

All issues in cloudposse/charts

Similar issues

More Security issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.