# Can’t connect remotely to Ubuntu Server

**URL:** <https://community.cratedb.com/t/can-t-connect-remotely-to-ubuntu-server/1204>\
**Category:** CrateDB\
**Created:** [September 5, 2022, 6:24am UTC](https://community.cratedb.com/t/can-t-connect-remotely-to-ubuntu-server/1204 "2022-09-05T06:24:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cfi](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@cfi](https://community.cratedb.com/u/cfi)\
**Post date:** [September 5, 2022, 6:24am UTC](https://community.cratedb.com/t/can-t-connect-remotely-to-ubuntu-server/1204/1 "2022-09-05T06:24:32Z")

</div>

I am trying to connect to Crate, installed on an Ubuntu Server (without graphical user interface).

Following the documentation I have made these changes:

crate.yml:  
network.host: _site_, _local_

Environment Variable:  
export CRATE\_HEAP\_SIZE=2g

Any idea what is wrong?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/crate/original/1X/cbe566f45d4d916ca8af87c5bc1e7c0fb4676011.png)

---

<div class="post-metadata">

**Author:** ![proddata](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/proddata/32/1379_2.png) [@proddata](https://community.cratedb.com/u/proddata)\
**Post date:** [September 5, 2022, 6:54am UTC](https://community.cratedb.com/t/can-t-connect-remotely-to-ubuntu-server/1204/2 "2022-09-05T06:54:33Z")

</div>

Hi @cfi

- Are you trying to connect from the same machine or from a remote one?
  - To connect from a remote machine you need to first create a user, that is allowed to do so. The default superuser `crate` is only allowed to connect from the same host  
also see [Create user — CrateDB: How-Tos](https://crate.io/docs/crate/howtos/en/latest/getting-started/create-user.html)

- Is CrateDB running?

```nohighlight
systemctl status crate

```

- Can you connect from the same machine (e.g. using `crash`)
- Do you have `ufw` enabled?

---

<div class="post-metadata">

**Author:** ![cfi](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@cfi](https://community.cratedb.com/u/cfi)\
**Post date:** [September 6, 2022, 5:40am UTC](https://community.cratedb.com/t/can-t-connect-remotely-to-ubuntu-server/1204/3 "2022-09-06T05:40:31Z")

</div>

Hi @proddata

after several tries and the hints in these sites I finally got it running (before your response):

> [@How can I connect from a remote server to a CrateDB node using crash?](https://community.cratedb.com/t/how-can-i-connect-from-a-remote-server-to-a-cratedb-node-using-crash/832/10):
>
> [mfussenegger](https://github.com/mfussenegger) If you change network.host it assumes that you’re using CrateDB for production and enforces some [Bootstrap Checks](https://crate.io/docs/crate/howtos/en/latest/admin/bootstrap-checks.html) to ensure CrateDB is suitably configured. When using the package-based setup flavor for [Debian or Ubuntu](https://crate.io/docs/crate/tutorials/en/latest/install.html#install-deb) or [Red Hat or CentOS](https://crate.io/docs/crate/tutorials/en/latest/install.html#install-rpm), the CrateDB startup script uses [Environment variables](https://crate.io/docs/crate/reference/en/4.6/config/environment.html#conf-env) from the /etc/default/crate file. or you set it in the console with e.g. export CRATE\_HEAP\_SIZE=4g I think we might need to adjust the notes a little: I am sorry that you have suc…

> <https://stackoverflow.com/questions/51117274/how-can-i-access-cratedb-admin-ui-on-ubuntu-server-18-04-across-the-lan>

“Are you trying to connect from the same machine or from a remote one?”  
Yes

"To connect from a remote machine you need to first create a user, that is allowed to do so. "  
That was the problem.  
It would be good if this info can be available more prominent in the getting started or in the Post-install notes.

---

<div class="post-metadata">

**Author:** ![proddata](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/proddata/32/1379_2.png) [@proddata](https://community.cratedb.com/u/proddata)\
**Post date:** [September 6, 2022, 8:12am UTC](https://community.cratedb.com/t/can-t-connect-remotely-to-ubuntu-server/1204/4 "2022-09-06T08:12:42Z")

</div>

We are currently in the process of reworking the getting started / install section and will take your input into consideration.
