镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

ssh from bastion not working #109

Open

Description

@mbjerkness

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.

Activity

  1. mbjerkness commented on Mar 30, 2017

    @mbjerkness
    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?

  2. Brzhk commented on Jul 27, 2017

    @Brzhk

    @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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions