From f0671199cbe4a3e975d295c479b02de8d2bc3bf1 Mon Sep 17 00:00:00 2001 From: Yunobot Date: Wed, 4 Jul 2018 20:09:14 +0000 Subject: [PATCH 1/2] Add explanations on the yunohost user ssh command [English] (#1137) --- ssh.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/ssh.md b/ssh.md index 9d27ed06..6d7968d0 100644 --- a/ssh.md +++ b/ssh.md @@ -58,7 +58,25 @@ ssh -p 2244 admin@your.domain.tld By default, only the admin and root users can log in to YunoHost ssh server. -YunoHost's users created via the administration interface are managed by the LDAP directory. By default, they can't connect via SSH for security reasons. See [here](https://forum.yunohost.org/t/ssh-disconnects-after-successful-login/256/10) if you absolutely want some users to have SSH access enabled. +YunoHost's users created via the administration interface are managed by the LDAP directory. By default, they can't connect via SSH for security reasons. If you want some users to have SSH access enabled, use the command: + +```bash +yunohost user ssh allow +``` + +It is also possible to remove ssh access using the following: + +```bash +yunohost user ssh disallow +``` + +Finally, it is possible to add, delete and list ssh keys, to improve ssh access security, using the commands: + +```bash +yunohost user ssh add-key +yunohost user ssh remove-key +yunohost user ssh add-key +``` ## Security and SSH From f9474ea594def00c78f13234ca7e8daa05835d22 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 4 Jul 2018 22:37:02 +0200 Subject: [PATCH 2/2] Forgot to replace list-keys --- ssh.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh.md b/ssh.md index 6d7968d0..95dc819f 100644 --- a/ssh.md +++ b/ssh.md @@ -75,7 +75,7 @@ Finally, it is possible to add, delete and list ssh keys, to improve ssh access ```bash yunohost user ssh add-key yunohost user ssh remove-key -yunohost user ssh add-key +yunohost user ssh list-keys ``` ## Security and SSH