Skip to main content

Grant SSH to subdomain via key?

Comments

5 comments

  • 24x7server
    Hi, Conceptually speaking, SSH can be enabled for user. You cannot get a separate SSH for a subdomain but only for main user and you can access all in this account through it.. However, if there is any specific requirement, the work around for this would to create a separate cPanel account for this subdomain..
    0
  • Harikalar Kutusu
    I'm not sure if I can create an account without a new domain name... Perhaps you are referring to scripts that I don't know anything about :/ Or playing with configuration files? What about creating a user in bash, giving rights to those directories and using ssh-keygen etc? Is it possible this way?
    0
  • cPanelMichael
    Hello, I recommend creating a separate cPanel account for the subdomain for this purpose. Otherwise, you'd have to setup a manual workaround like the one described at: restrict access based on SSH key Thank you.
    0
  • Harikalar Kutusu
    OK, thank you... I found out that I could create an account for a subdomain in WHM, I didn't know that...
    0
  • 24x7server
    Hi, Glad you figure it out. Yes, you can create legitimate domain name that is fully qualified, even if it is a subdomain because subdomain is also a fully qualified domain and that is what I was referring too.
    0

Please sign in to leave a comment.