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 Code:
Permission denied (publickey,keyboard-interactive). Any help would be appreciated. Thanks in advance! |
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?
|
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. |
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. |