# Sync website files to home server

**URL:** https://forum.syncthing.net/t/sync-website-files-to-home-server/11974
**Category:** Support
**Created:** [August 13, 2018, 11:26am UTC](https://forum.syncthing.net/t/sync-website-files-to-home-server/11974 "2018-08-13T11:26:58Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Tegra](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/c89c15/32.png) [@Tegra](https://forum.syncthing.net/u/Tegra)
#### Post date: [August 13, 2018, 11:26am UTC](https://forum.syncthing.net/t/sync-website-files-to-home-server/11974/1 "2018-08-13T11:26:58Z")

</div>

Is it possible to set up Syncthing to sync my website files on my cents vps to my home server on a Linux box running cents as well?

I saw and read about how it creates a URL to setup the sync but I don’t want that open to the world. So how would I do it using ssh?

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [August 13, 2018, 12:05pm UTC](https://forum.syncthing.net/t/sync-website-files-to-home-server/11974/2 "2018-08-13T12:05:06Z")

</div>

No idea what you mean by creating an URL. Syncthing communicates with its own protocol over tcp. You need a way to discover the other device (local/global discovery or fixed IP) and an open port (forwarded or upnp) on one of the two devices (usually port 22000) to sync - nothing is exposed. To access the web UI on the vps, you can either expose it secured with a login or create an ssh tunnel to access it “locally”.

---

<div class="post-metadata">

### Author: ![Tegra](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/c89c15/32.png) [@Tegra](https://forum.syncthing.net/u/Tegra)
#### Post date: [August 13, 2018, 1:39pm UTC](https://forum.syncthing.net/t/sync-website-files-to-home-server/11974/3 "2018-08-13T13:39:02Z")

</div>

What i mean buy accessing it url. I mean that one you install it there is a gui to access and make changes and so on. So I dont want that access available to the world because its not password protected.

How would I access it with a ssh tunnel locally ? I am not sure what you mean by that.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [August 13, 2018, 1:46pm UTC](https://forum.syncthing.net/t/sync-website-files-to-home-server/11974/4 "2018-08-13T13:46:07Z")

</div>

I think there are some explanations about ssh tunnels in the docs, yet it requires it to be setup in a certain way I think.

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [August 13, 2018, 1:53pm UTC](https://forum.syncthing.net/t/sync-website-files-to-home-server/11974/5 "2018-08-13T13:53:07Z")

</div>

I don’t know about the docs, but it’s just a regular ssh tunnel. By default the Syncthing UI is accessible at `localhost:8384`, so on the homeserver you’d run something like `ssh -fN -L 8385:*yourVPSIP*:8384` and then you can access the Syncthing UI belonging to the VPS on the homeserver at `localhost:8385`.

---

<div class="post-metadata">

### Author: ![Tegra](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/c89c15/32.png) [@Tegra](https://forum.syncthing.net/u/Tegra)
#### Post date: [August 13, 2018, 2:07pm UTC](https://forum.syncthing.net/t/sync-website-files-to-home-server/11974/6 "2018-08-13T14:07:39Z")

</div>

Not really good with ssh only basics. What does the -fN -L do ?

So are you saying from my home server via gui I will be able to connect to my VPS like if i was logged in my VPS ?

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [August 13, 2018, 2:58pm UTC](https://forum.syncthing.net/t/sync-website-files-to-home-server/11974/7 "2018-08-13T14:58:25Z")

</div>

What do you want to do - access the VPS Syncthing UI without logging into the VPS and without exposing the UI?

`-L` is the main thing, it establishes the forwarding. `-fN` makes it go to the background and without executing a command (`man ssh` can tell you all about that).

---

<div class="post-metadata">

### Author: ![Tegra](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/c89c15/32.png) [@Tegra](https://forum.syncthing.net/u/Tegra)
#### Post date: [August 13, 2018, 4:34pm UTC](https://forum.syncthing.net/t/sync-website-files-to-home-server/11974/8 "2018-08-13T16:34:22Z")

</div>

I looked around and didnt see a way to install this on CentOs. Can you help ?

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [August 13, 2018, 4:57pm UTC](https://forum.syncthing.net/t/sync-website-files-to-home-server/11974/9 "2018-08-13T16:57:38Z")

</div>

“This” as in Syncthing? [https://docs.syncthing.net/users/contrib.html#fedora-centos](https://docs.syncthing.net/users/contrib.html#fedora-centos)

---

<div class="post-metadata">

### Author: ![Tegra](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/c89c15/32.png) [@Tegra](https://forum.syncthing.net/u/Tegra)
#### Post date: [August 13, 2018, 5:38pm UTC](https://forum.syncthing.net/t/sync-website-files-to-home-server/11974/10 "2018-08-13T17:38:03Z")

</div>

Thank you

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [October 3, 2018, 11:44pm UTC](https://forum.syncthing.net/t/sync-website-files-to-home-server/11974/12 "2018-10-03T23:44:07Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
