# "yunohost user ssh allow" missing / absent

**URL:** <https://forum.yunohost.org/t/yunohost-user-ssh-allow-missing-absent/15985>\
**Category:** Support\
**Tags:** yunohost, french\
**Created:** [May 25, 2021, 3:48pm UTC](https://forum.yunohost.org/t/yunohost-user-ssh-allow-missing-absent/15985 "2021-05-25T15:48:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![noolang](https://forum.yunohost.org/user_avatar/forum.yunohost.org/noolang/32/5739_2.png) [@noolang](https://forum.yunohost.org/u/noolang)\
**Post date:** [May 25, 2021, 3:48pm UTC](https://forum.yunohost.org/t/yunohost-user-ssh-allow-missing-absent/15985/1 "2021-05-25T15:48:22Z")

</div>

**Hardware:** old laptop  
**YunoHost version:** 4.2.4  
**I have access to my server :** Through SSH & the webadmin  
**Are you in a special context** : no

## Description of my issue 🇬🇧

The [Admin Guide](https://yunohost.org/en/administrate/overview/commandline#which-other-users-may-connect-to-the-server) explains that it is possible to grant SSH access to a user by using the command `yunohost user ssh allow`.

This command seems to have been removed from recent YNH installations… It isn’t in the _manpage_, not the integrated `--help`. And I can’t find it either in the source.

* * *

## Description du problème 🇫🇷

Le [guide d’administration](https://yunohost.org/fr/administrate/overview/commandline) indique qu’il est possible de donner un accès SSH à un utilisateur avec la commande `yunohost user ssh allow`.

Mais en fait, j’ai l’impression que cette commande a été retirée dans les versions récentes de YNH.

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [May 25, 2021, 4:25pm UTC](https://forum.yunohost.org/t/yunohost-user-ssh-allow-missing-absent/15985/2 "2021-05-25T16:25:48Z")

</div>

c.f. “Notes for advanced users” in 4.2 release, the command was removed

SSH access is now managed as a regular yunohost permissions in Users \> Manage permissions and groups

---

<div class="post-metadata">

**Author:** ![noolang](https://forum.yunohost.org/user_avatar/forum.yunohost.org/noolang/32/5739_2.png) [@noolang](https://forum.yunohost.org/u/noolang)\
**Post date:** [May 25, 2021, 4:28pm UTC](https://forum.yunohost.org/t/yunohost-user-ssh-allow-missing-absent/15985/3 "2021-05-25T16:28:34Z")

</div>

Merci @Aleks,

J’avais continué à chercher et j’étais justement en train d’écrire :

> `data_migrations/0020_ssh_sftp_permissions.py` ait créé les permissions `ssh.main` et `sftp.main`… Mais je ne comprends pas s’il faut simplement les attribuer à un _user_ pour qu’il puisse se connecter 🤔

OK, je creuse de ce côté là 🔍

---

<div class="post-metadata">

**Author:** ![noolang](https://forum.yunohost.org/user_avatar/forum.yunohost.org/noolang/32/5739_2.png) [@noolang](https://forum.yunohost.org/u/noolang)\
**Post date:** [May 25, 2021, 4:49pm UTC](https://forum.yunohost.org/t/yunohost-user-ssh-allow-missing-absent/15985/4 "2021-05-25T16:49:57Z")

</div>

🇬🇧 Summary of the CLI commands  
🇫🇷 Résumé des commandes en ligne

`yunohost user permission list`  
`yunohost user permission add ssh.main <user>`  
`yunohost user permission remove ssh.main <user>`

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [June 24, 2021, 4:50pm UTC](https://forum.yunohost.org/t/yunohost-user-ssh-allow-missing-absent/15985/5 "2021-06-24T16:50:24Z")

</div>

Closed on June 24, 2021, 4:50pm UTC

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