ssh user with a key

Discussion in 'General' started by ariban99, Oct 24, 2019.

  1. ariban99

    ariban99 Member

    Hi
    i setup ispconfig using centos 7.4, i blocked accessing my server with a password and you can only access it with an RSA Key
    when i setup an SSH user in ispconfig control panel, of course that user gets an error saying they cant use their password and they need a key.
    there is a place to put in a public key, but it doesnt generate a new key for this specific user, in other words, how do we setup a NEW rsa key just for this user?
    Thank you
     
  2. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    paste the public-key into the field? you should generate a key-pair yourself and just insert the public-key.
     
  3. ariban99

    ariban99 Member

    i see so i have to generate the key manually on the server and then paste it.
    i always thought ispconfig did all the server work automatically for us and we should not go around it and do things manually on the server end. i will generate the key and paste it.
    thank you for your help
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Usually the SSH key is generated by the user on his/her workstation, and the public part of the key sent to the server. If you create keys for the user then you know both halves of the key, which the users may not approve of. And you would need to send the private part of key to user, and trust user can install it in the .ssh directory.
     

Share This Page