# Remote Connection - Unable to Validate User

**URL:** <https://forum.datomic.com/t/remote-connection-unable-to-validate-user/1108>\
**Category:** General\
**Created:** [August 5, 2019, 2:35pm UTC](https://forum.datomic.com/t/remote-connection-unable-to-validate-user/1108 "2019-08-05T14:35:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skbach](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@skbach](https://forum.datomic.com/u/skbach)\
**Post date:** [August 5, 2019, 2:35pm UTC](https://forum.datomic.com/t/remote-connection-unable-to-validate-user/1108/1 "2019-08-05T14:35:01Z")

</div>

I’m trying to connect remotely from my local machine to my transactor on ec2. i keep getting ActiveMQSecurityException, unable to validate user.

I’ve set the properties file to include the following:

storage-admin-password= _mypass_  
storage-datomic-password= _myotherpass_  
storage-access=remote  
alt-host= _myip_

Then from the client side the url is "datomic:sql:// _mydbname_ ?jdbc:postgresql:// _myip_ :5432/datomic?user= _myuser_ &password= _myotherpass_ "

It says in [my.datomic.com](http://my.datomic.com) that I have unlimited peers, so I’m not sure why the user can’t be validated. Shutting down all other peers results in the same error.

---

<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:** [August 14, 2019, 3:20pm UTC](https://forum.datomic.com/t/remote-connection-unable-to-validate-user/1108/2 "2019-08-14T15:20:46Z")

</div>

Are you running postgres on the same EC2 instance as your transactor?  
Generally, the inability to connect is due to configuration of `host` and `alt-host` values in the transactor properties file.  
See the response here: [Unable to connect to remote datomic (mysql)](https://forum.datomic.com/t/unable-to-connect-to-remote-datomic-mysql/318)

---

<div class="post-metadata">

**Author:** ![skbach](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@skbach](https://forum.datomic.com/u/skbach)\
**Post date:** [August 29, 2019, 2:00pm UTC](https://forum.datomic.com/t/remote-connection-unable-to-validate-user/1108/3 "2019-08-29T14:00:25Z")

</div>

Postgres is running on the same box. I can connect directly to postgres. I tried your link plus several others and nothing works. Finally gave up and wrote a custom sync script for myself that replicates via backup. Datomic makes many hard things easy and many easy things hard 🙂
