Find the answer to your Linux question:
Results 1 to 2 of 2
I have done my first Fedora 8 server install. I'm trying to ssh as root, but get "access denied". Where is the file that I need to change to allow ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2006
    Posts
    82

    ssh root fedora 8


    I have done my first Fedora 8 server install. I'm trying to ssh as root, but get "access denied".

    Where is the file that I need to change to allow root to ssh and what setting do I need to put?

    Thanks.

  2. #2
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    SSH access by root is considered to be a bad idea. You have been warned.

    But if you really want to enable it, you need to edit /etc/ssh/sshd_config, and change,
    Code:
    PermitRootLogin no
    to
    Code:
    PermitRootLogin yes
    Then restart sshd
    Code:
    sudo /etc/init.d/sshd restart
    But please reconsider this. Why can't you log in as a regular user, and then use su or sudo to gain root privileges temporarily?
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

Posting Permissions

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