Cannot ssh into build machine

ssh

#1

Hi Folks,

I’m having difficulty ssh-ing into our CircleCI build servers. The project has a user key associated with my Github account. I was able to verify that I have providing the same SSH key as I use for github, and that my Github SSH key authenticates properly.

Below is the output from the ssh -v command:

Adams-MacBook-Air:~ findyr-akaplan$ ssh -v ubuntu@54.82.121.242
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: /etc/ssh/ssh_config line 56: Applying options for *
debug1: Connecting to 54.82.121.242 [54.82.121.242] port 22.
debug1: Connection established.
debug1: identity file /Users/findyr-akaplan/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/findyr-akaplan/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/findyr-akaplan/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/findyr-akaplan/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/findyr-akaplan/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/findyr-akaplan/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/findyr-akaplan/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/findyr-akaplan/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6
debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6 pat OpenSSH_6.6.1* compat 0x04000000
debug1: Authenticating to 54.82.121.242:22 as 'ubuntu'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client chacha20-poly1305@openssh.com <implicit> none
debug1: kex: client->server chacha20-poly1305@openssh.com <implicit> none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:6NXTmZ57mzg167wSVBnW80z4wbrSVZQdYvg2SoNsx9U
debug1: Host '54.82.121.242' is known and matches the ECDSA host key.
debug1: Found key in /Users/findyr-akaplan/.ssh/known_hosts:40
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/findyr-akaplan/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Trying private key: /Users/findyr-akaplan/.ssh/id_dsa
debug1: Trying private key: /Users/findyr-akaplan/.ssh/id_ecdsa
debug1: Trying private key: /Users/findyr-akaplan/.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).

Any help would be greatly appreciated! Thanks!


#2

Indeed, same issue here as well


#3

I believe this is my issue as well. We have an organization Github repo and someone else is the owner of the project I can’t SSH into.

This is a bit of a dealbreaker - this used to work fine. Don’t like the idea of sharing a private key among the team as a work-around.


#4

is there a way that i can ssh into running builds without triggering something like vagrant or something like that.

i used vagrant & homestead in beforehand but are using valet for local hosting my laravel application

so if there is a way to such a task without using something like vagrant and homestead local server it would be great for right now i keep getting following error

The machine with the name '64611' was not found configured for
this Vagrant environment.

#5