YunoHost-Apps / ssh_chroot_dir_ynh

GNU General Public License v3.0
2 stars 2 forks source link

installation impossible sans fournir de clé ssh #8

Closed tomdereub closed 5 years ago

tomdereub commented 5 years ago

C'est marqué comme optionnel, mais on ne peut pas la laisser vide, même si le mot de passe est fourni. Edit : via l'interface admin, en ligne de commande ça marche.

maniackcrudelis commented 5 years ago

Looks like it's a bug from the admin panel, unless you have an error during the install process. But, if the field can't be left empty, then that's an issue from the admin panel. In that case, you should open an issue on the bug tracker of YunoHost directly. https://github.com/YunoHost/issues/issues

tomdereub commented 5 years ago

Now I have the contrary, I can't install it without password, even in command line...

maniackcrudelis commented 5 years ago

Is it a error message about the size of your password ? With a disclaimer about the password not being strong enough ?

tomdereub commented 5 years ago

Yes it is, if you don't give a password it says "password must be minimum 8 characters".

Le 26 mars 2019 16:32:09 GMT+01:00, Maniack Crudelis notifications@github.com a écrit :

Is it a error message about the size of your password ? With a disclaimer about the password not being strong enough ?

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/YunoHost-Apps/ssh_chroot_dir_ynh/issues/8#issuecomment-476704883

maniackcrudelis commented 5 years ago

I opened an issue about it months ago https://github.com/YunoHost/issues/issues/1261

Meanwhile, you can use one of those 2 commands (don't know which one concerns apps)

sudo yunohost settings set security.password.admin.strength -v -1
sudo yunohost settings set security.password.user.strength -v -1

sudo yunohost settings get security.password.admin.strength will gives you the value it contains if you want to set it back. The 2 previous will get rid of the limitation about passwords in YunoHost globally.

tomdereub commented 5 years ago

Ok, but if you do that, it will give an empty password, won't it ? My idea is to make it impossible to connect with password, not to give an empty password that would give an easy access.

maniackcrudelis commented 5 years ago

No the password is optional, if you don't give one the app will use the ssh key only. The problem here is that YunoHost won't allow an empty password, even if it's optional into the manifest. The fix done by Aleks will probably fix that. I need to find some will to try it...

tomdereub commented 5 years ago

Ok, this solution worked. I set the user to -1 during installation, then 1 again, thanks !