Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

ssh from bastion not working #109

Open
mbjerkness opened this issue Mar 30, 2017 · 2 comments
Open

ssh from bastion not working #109

mbjerkness opened this issue Mar 30, 2017 · 2 comments

Comments

@mbjerkness
Copy link

When I am either trying to ssh through the bastion or ssh to the bastion and then ssh to one of my internal servers, I am continually getting Host key verification failed.

$ ssh -i ~/.ssh/key-pair.pem ubuntu@EXTERNAL_IP ssh ubuntu@INTERNAL_IP
The authenticity of host 'EXTERNAL_IP (EXTERNAL_IP)' can't be established.
ECDSA key fingerprint is SHA256:SHA_FINGER_PRINT_HERE.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'EXTERNAL_IP' (ECDSA) to the list of known hosts.
Pseudo-terminal will not be allocated because stdin is not a terminal.
Host key verification failed.

@mbjerkness
Copy link
Author

I was able to manually FTP the public key up to the bastion host and then I was able to ssh into the internal servers, is this expected?

@Brzhk
Copy link

Brzhk commented Jul 27, 2017

@mbjerkness see https://github.com/BrzhkDev/stack-jenkins/tree/master/ssh_helper
Can't answer for the devs, but there seem to be an incomplete provisioning of the ~/.ssh/config file in the bastion module.
Be careful with my module on the way to create public/private ssh keys. It also only adds the bastion in your local known_hosts file, but not the host instances in the bastion's.

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

No branches or pull requests

2 participants