# Cells 2.2.0 and SFTP not starting

**URL:** https://forum.pydio.com/t/cells-2-2-0-and-sftp-not-starting/3712
**Category:** Pydio Cells
**Created:** [February 5, 2021, 10:21pm UTC](https://forum.pydio.com/t/cells-2-2-0-and-sftp-not-starting/3712 "2021-02-05T22:21:16Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Peter\_Kirby](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/peter_kirby/32/1360_2.png) [@Peter\_Kirby](https://forum.pydio.com/u/Peter_Kirby)
#### Post date: [February 5, 2021, 10:21pm UTC](https://forum.pydio.com/t/cells-2-2-0-and-sftp-not-starting/3712/1 "2021-02-05T22:21:16Z")

</div>

I’ve just installed Cells-Enterprise 2.2.0 to get the sftp functionality. I edited the pydio.json file as per:  
[https://pydio.com/en/docs/cells/v2/ed-sftp-access](https://pydio.com/en/docs/cells/v2/ed-sftp-access)

Cells starts just fine, there are no errors, but I see no evidence at all that sftp service was even attempted. There is nothing listening at all on port 2022.

My config in the services section is as follows:  
“pydio.gateway.sftp”: {  
“hostKeyFile”: “/var/lib/cells/sftpHostKey”,  
“port”: 2022,  
“tmpDir”: “/var/lib/cells/data/tmp”,  
“tmpFilesLifespan”: “15m”  
},

I have restarted multiple times, but the service isn’t even listed in the UI or by using cells-enterprise ps.

Thank You.

---

<div class="post-metadata">

### Author: ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)
#### Post date: [February 8, 2021, 2:40pm UTC](https://forum.pydio.com/t/cells-2-2-0-and-sftp-not-starting/3712/2 "2021-02-08T14:40:36Z")

</div>

Hey @Peter_Kirby

Thanks for posting - Seems like you are one of the first to test this new feature :-), as indeed an error slipped through the docs… **You have to add an `enabled` key in the parameters** :

```auto
"pydio.gateway.sftp": {
   "enabled": true, // <= ADD THIS KEY
   "hostKeyFile": "/var/lib/cells/sftpHostKey",
   "port": 2022,
   "tmpDir": "/var/lib/cells/data/tmp",
   "tmpFilesLifespan": "15m"
},

```

This should do the trick.  
Re-testing this, it now appears correctly in `cells-enterprise ps` (OK) but the service does not appear as running (KO), _although it is_. We’ll fix this for next release, just look at the start log, you should see some entry like:

```auto
2021-02-08T15:32:43.958+0100	INFO	Listening for SFTP connections on [::]:2022

```

Tell me if it’s ok - we’ll update the docs

Charles

---

<div class="post-metadata">

### Author: ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)
#### Post date: [February 8, 2021, 2:47pm UTC](https://forum.pydio.com/t/cells-2-2-0-and-sftp-not-starting/3712/3 "2021-02-08T14:47:06Z")

</div>

=\> Docs updated 🙂

---

<div class="post-metadata">

### Author: ![Peter\_Kirby](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/peter_kirby/32/1360_2.png) [@Peter\_Kirby](https://forum.pydio.com/u/Peter_Kirby)
#### Post date: [February 8, 2021, 3:00pm UTC](https://forum.pydio.com/t/cells-2-2-0-and-sftp-not-starting/3712/4 "2021-02-08T15:00:39Z")

</div>

@charles that did the trick, thank you.

May I ask one more question here related to sftp? I’m happy to start another thread if needed.

When setting up sftp I started setting up user tokens. I created the tokens just fine, but I don’t see any way to see which users have tokens and when they expire either in the CLI or Web app. Is there a way I’m missing? I’m happy to even run SQL against the DB, but I wanted to ask here before I go digging through the schema trying to find it.

Thank You.

---

<div class="post-metadata">

### Author: ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)
#### Post date: [February 8, 2021, 3:14pm UTC](https://forum.pydio.com/t/cells-2-2-0-and-sftp-not-starting/3712/5 "2021-02-08T15:14:59Z")

</div>

You are not missing anything. At the moment, once the token is generated, there is no tool to manage them via the UX. This will come in next versions of Cells ED. Even via UX, like on many platforms, the idea will be to show you the token only once, so that you can copy/paste it, but not afterward. But there will definitely be a way to revoke them easily, and to check for their expiration.  
-c

---

<div class="post-metadata">

### Author: ![Peter\_Kirby](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/peter_kirby/32/1360_2.png) [@Peter\_Kirby](https://forum.pydio.com/u/Peter_Kirby)
#### Post date: [February 8, 2021, 11:18pm UTC](https://forum.pydio.com/t/cells-2-2-0-and-sftp-not-starting/3712/6 "2021-02-08T23:18:09Z")

</div>

Just dropping this here in case someone else runs across it before tokens are available in the UI. At the time of this post they can be found in the database in the table idm\_personal\_tokens.

That way you can see who has which tokens and when they expire.

---

<div class="post-metadata">

### Author: ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)
#### Post date: [February 17, 2021, 4:40pm UTC](https://forum.pydio.com/t/cells-2-2-0-and-sftp-not-starting/3712/7 "2021-02-17T16:40:46Z")

</div>

Hi @Peter_Kirby , couple of updates with 2.2.1

- sFTP is properly shown as Running now
- Tokens inside idm\_personal\_token are now hashed

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/6/61f19fa52ec15fd4250db51aea351adba0e831fd.png) [@system](https://forum.pydio.com/u/system)
#### Post date: [February 28, 2021, 10:41pm UTC](https://forum.pydio.com/t/cells-2-2-0-and-sftp-not-starting/3712/8 "2021-02-28T22:41:28Z")

</div>

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