restrict shell users to login via key

Discussion in 'Installation/Configuration' started by muekno, Feb 19, 2023.

  1. muekno

    muekno Active Member HowtoForge Supporter

    I saw an option to restrict the login with key only, can not find it any more.
    Sorry

    Regards Rainer
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    To use key paste it in the box under SSH-RSA Public Key (for key-based logins).
     
  3. muekno

    muekno Active Member HowtoForge Supporter

    Thank you, I know and I did, and do it since years, and it works. My question was another.
    When I installed this I saw a parameter with a drop down list, where I could allow login via password & key, or password only, or key only. I like to set it o key only. I did not set it at once, as I would try it with key before and the if it works, what it does, set to key only. I never saw this option all the years I use ISPconfig, may be it's new .But I cannot find this parameter any more.

    Regards

    Rainer
     
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    So far that I know that can be done for the server admin via sshd config file. I am not so sure how that can be done for the client but you can always explore how jailkit works and try to add it in that relevant file if that is even possible. However, in my mind / theory, even if that is possible, that might force the other users to use the same method i.e. key only. Or that might not. Not sure.
     
    Last edited: Feb 20, 2023
  5. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    it's now a global setting, not on the ssh user creation page..

    system -> main -> sites tab -> Allowed SSH authentication last configuration option, right at the bottom..
     
    ahrasis and muekno like this.

Share This Page