cloudposse / cloudposse/charts

bastion does not seems to work and returns permission denied.

Open
#269 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Mustache
Stars
160
Forks
62
PR merge metrics
No merged PRs in 30d

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 azizzoaib786@127.0.0.1```
```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.```
```azizzoaib786@127.0.0.1: 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]```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.