# Cannot ssh into build machine

**URL:** <https://discuss.circleci.com/t/cannot-ssh-into-build-machine/3433>\
**Category:** Build Environment\
**Tags:** ssh\
**Created:** [April 18, 2016, 6:36pm UTC](https://discuss.circleci.com/t/cannot-ssh-into-build-machine/3433 "2016-04-18T18:36:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abkaplan07](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/abkaplan07/32/2491_2.png) [@abkaplan07](https://discuss.circleci.com/u/abkaplan07)\
**Post date:** [April 18, 2016, 6:36pm UTC](https://discuss.circleci.com/t/cannot-ssh-into-build-machine/3433/1 "2016-04-18T18:36:14Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![glesage](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/glesage/32/1224_2.png) [@glesage](https://discuss.circleci.com/u/glesage)\
**Post date:** [May 18, 2016, 2:13pm UTC](https://discuss.circleci.com/t/cannot-ssh-into-build-machine/3433/2 "2016-05-18T14:13:55Z")

</div>

Indeed, same issue here as well

> [@SSH no longer works](https://discuss.circleci.com/t/ssh-no-longer-works/2457/4):
>
> Ah, found the cause. The project is owned by another Github account (which I also control). Something must have changed with Circle as it seems to only allow the project owner to ssh in now. I fixed it by generating a new ssh key for the project owner (ssh-keygen -f ~/.ssh/other), adding it to Github, and using that to connect to Circle (ssh -i ~/.ssh/other).

---

<div class="post-metadata">

**Author:** ![abkaplan07](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/abkaplan07/32/2491_2.png) [@abkaplan07](https://discuss.circleci.com/u/abkaplan07)\
**Post date:** [May 18, 2016, 3:02pm UTC](https://discuss.circleci.com/t/cannot-ssh-into-build-machine/3433/3 "2016-05-18T15:02:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lk22](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@lk22](https://discuss.circleci.com/u/lk22)\
**Post date:** [October 26, 2016, 2:44pm UTC](https://discuss.circleci.com/t/cannot-ssh-into-build-machine/3433/4 "2016-10-26T14:44:11Z")

</div>

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.
```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:38am UTC](https://discuss.circleci.com/t/cannot-ssh-into-build-machine/3433/5 "2018-06-18T11:38:15Z")

</div>

Closed on June 18, 2018, 11:38am UTC


