Find the answer to your Linux question:
Results 1 to 5 of 5
Hi experts. Need help on how to enable direct login of root via ssh? I find and info that i just need to update /etc/ssh/sshd_config, but i couldn't see that ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2011
    Posts
    5

    Direct root login via ssh


    Hi experts.

    Need help on how to enable direct login of root via ssh?
    I find and info that i just need to update /etc/ssh/sshd_config, but i couldn't see that file in the location...

    Please help.

    Many Thanks,
    Rhea

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,382
    The file and location seems right.
    Are you sure sshd server is installed?
    Maybe ask your package manager for the exact location
    Code:
    rpm -qvl openssh-server
    dpkg -L openssh-server
    In sshd_config, the directive is called PermitRootLogin.

    Imho, it is best practice to have remote root logins disabled.
    But ymmv.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    May 2011
    Posts
    5
    Quote Originally Posted by Irithori View Post
    The file and location seems right.
    Are you sure sshd server is installed?
    Maybe ask your package manager for the exact location
    Code:
    rpm -qvl openssh-server
    dpkg -L openssh-server
    In sshd_config, the directive is called PermitRootLogin.

    Imho, it is best practice to have remote root logins disabled.
    But ymmv.

    Hi Irithori,

    Thanks for the responds. I have checked and the package is not there. Not in our repository as well...I saw it in RHEL4 but not in RHEL5... Do you know where i could download this?

    Thanks,
    Rhea

  4. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,382
    Sure, from the RedHatNetwork (rhn).
    If your machine is subscribed, the installation is just a
    Code:
    yum install openssh-server
    away.

    Other than that, openssh is also on the RedHat installation CDs/DVDs
    You must always face the curtain with a bow.

  5. #5
    Just Joined!
    Join Date
    May 2011
    Posts
    5
    Hi Iritori,

    I just logged on again... Many thanks for the advise.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •