LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   root login on ssh (https://www.linuxquestions.org/questions/linux-networking-3/root-login-on-ssh-464406/)

Panagiotis_IOA 07-15-2006 05:47 PM

root login on ssh
 
I have been using ssh service with Slackware, Suse and FC and the root login was working perfectly. Now I installed to an old machine FreeBSD and I want to use ssh to that as well. The normal user login works but not the root one. The error I get is:

Code:

sshd[503] : error: PAM: authentication error for root xxx.xxx.xxx.xxx
And after promting again to enter the password I get the following line:

Code:

Permission denied (publickey,keyboard-interactive).
The password I enter is the right one for sure as I'm using it to login as root to the system.

Any help would be appreciated. Thanks in advance!

reddazz 07-15-2006 05:51 PM

Many distros and other OSes disable the root account from being able to ssh or be accessed via ssh. The normal thing to do is ssh as a normal user and then su to witch to root. Is this what you are doing?

tangle 07-15-2006 05:52 PM

Check your /etc/ssh/sshd_config to see if it say RootLogin no. You really shouldn't do a remote log in as root.

NOTE: The place where FreeBSD keep the ssh files maybe different.

teckk 07-15-2006 10:25 PM

Use sudo if you must access remote as root.
Config your sudoers file. /usr/local/etc/sudoers

You can give a user root privledges, however you want.


All times are GMT -5. The time now is 11:04 AM.