# Unable to connect to Datomic system through the bastion

**URL:** <https://forum.datomic.com/t/unable-to-connect-to-datomic-system-through-the-bastion/1393>\
**Category:** Troubleshooting\
**Created:** [March 17, 2020, 1:37am UTC](https://forum.datomic.com/t/unable-to-connect-to-datomic-system-through-the-bastion/1393 "2020-03-17T01:37:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hkrishnan2005](https://avatars.discourse-cdn.com/v4/letter/h/65b543/32.png) [@hkrishnan2005](https://forum.datomic.com/u/hkrishnan2005)\
**Post date:** [March 17, 2020, 1:37am UTC](https://forum.datomic.com/t/unable-to-connect-to-datomic-system-through-the-bastion/1393/1 "2020-03-17T01:37:26Z")

</div>

Until yesterday evening, everything was working perfect. Suddenly from this morning, I am getting this error, when running the bastion command…

$\> bash datomic-socks-proxy   
fatal error: SSL validation failed for https://-storagef7f305e7-19lxfci-s3datomic-n8csrethjw9w.s3.us-west-2.amazonaws.com//datomic/access/private-keys/bastion [SSL: UNKNOWN\_PROTOCOL] unknown protocol (\_ssl.c:1076)  
Unable to read bastion key, make sure your AWS creds are correct.

Since then, I have created a new EC2 Key Pair, upgraded to the latest (storage & Solo), created new user credentials, and stored as part of the AWS credentials etc. Still showing the same error. What could be the issue? Thanks for the responses.

---

<div class="post-metadata">

**Author:** ![hkrishnan2005](https://avatars.discourse-cdn.com/v4/letter/h/65b543/32.png) [@hkrishnan2005](https://forum.datomic.com/u/hkrishnan2005)\
**Post date:** [March 17, 2020, 4:32am UTC](https://forum.datomic.com/t/unable-to-connect-to-datomic-system-through-the-bastion/1393/2 "2020-03-17T04:32:41Z")

</div>

When I use the datomic client access command, I get the following error.

$\>bash datomic client access   
Execution error (ExceptionInfo) at datomic.tools.ops.aws/invoke! (aws.clj:83).  
AWS Error: Unrecognized SSL message, plaintext connection?

Varified the AWS credentials & SSH setup.

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [March 17, 2020, 2:43pm UTC](https://forum.datomic.com/t/unable-to-connect-to-datomic-system-through-the-bastion/1393/3 "2020-03-17T14:43:52Z")

</div>

If you’ve upgraded to the latest, you’ll want to do two things:

- verify that you have opened port 22 on your access gateway instance security group in the EC2 console
- download the latest version of the Datomic CLI tools: (0.10.81) [https://docs.datomic.com/cloud/releases.html#current](https://docs.datomic.com/cloud/releases.html#current)

Some recent changes to the access gateway script and the access gateway are incompatible with prior versions, so you’ll need to make sure you’re using the latest of both.

---

<div class="post-metadata">

**Author:** ![hkrishnan2005](https://avatars.discourse-cdn.com/v4/letter/h/65b543/32.png) [@hkrishnan2005](https://forum.datomic.com/u/hkrishnan2005)\
**Post date:** [March 17, 2020, 6:02pm UTC](https://forum.datomic.com/t/unable-to-connect-to-datomic-system-through-the-bastion/1393/4 "2020-03-17T18:02:49Z")

</div>

> [@marshall](#):
>
> download the latest version of the Datomic CLI tools

Thank you for the quick response…

I have downloaded the latest version of the Datomic CLI tools. And it worked, this time!

Thanks again.
