“error: PAM: authentication error for root” when trying to SSH to FreeBSD server as “root”
2010-10-01 12:23
2831 查看
so:http://geekstutorials.com/2010/04/error-pam-authentication-error-for-root-when-trying-to-ssh-to-freebsd-server-as-root/
On a new installed FreeBSD server, when you try to SSH to the server as root, you will end up in the below error.
This is because by default “root” logins are disabled in SSH. You will have to enable this in the “/etc/ssh/sshd_config”. In many forums, you will notice that people ask you not to enable this. What they argue is true, but when I in closed network, I want to be able to login as root for many reasons which is why I’m writing this up.
In the “/etc/ssh/sshd_config” file, make sure you have below lines for you to be able to use “root” login using SSH. If any of the line doesn’t exist, you can add it to the file or if it is commented out, uncomment it.
On a new installed FreeBSD server, when you try to SSH to the server as root, you will end up in the below error.
error: PAM: authentication error for root from 10.1.XXX.XXX
This is because by default “root” logins are disabled in SSH. You will have to enable this in the “/etc/ssh/sshd_config”. In many forums, you will notice that people ask you not to enable this. What they argue is true, but when I in closed network, I want to be able to login as root for many reasons which is why I’m writing this up.
In the “/etc/ssh/sshd_config” file, make sure you have below lines for you to be able to use “root” login using SSH. If any of the line doesn’t exist, you can add it to the file or if it is commented out, uncomment it.
PermitRootLogin yes PasswordAuthentication yes AllowUsers root
相关文章推荐
- On a new installed FreeBSD server, when you try to SSH to the server as root, you will end up in the
- mysqldump执行时Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect
- Setup the SSH server to use keys for authentication
- Ubuntu 16.04 ssh 登陆出现错误Algorithm Negotiation failed when trying to connect to server 解决
- mysqldump: Got error: 1142: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'accounts' when using LOCK TABLES
- SSH File Transfer遇到错误"too many authentication failures for root".A protocol error was detected......
- Authentication Failed when trying to use Save As in the IE Browser
- ERR_WHEN_INSERT_TO_DB↵Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'root'@'localhost' (usin
- Error! Some required system tools when trying to apply Magento patches via SSH
- error: pam : authentication error for root
- ssh开发中插入数据时遇到 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right
- Solution for When browse http://xxx/ReportServer Show Error (rsAccessDenied)
- Failed: error connecting to db server: server returned error on SASL authentication step: Authentica
- ORA-12557: TNS:protocol adapter not loadable或error while trying to retrieve text for error ora-12557
- cocos2d 安装出现Error: This script must be run as root in order to copy templates to /Library/Applicatio
- 插入mysql语句报错:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- Visual Studio 2008 VSTO and InfoPath 2007 error when trying to run debug(转)
- ASP.Net DebugError解决方案[转]:Unable to start debugging on the web server.Debugging failes because integrated Windows authentication is not enabled.
- Connection to host as user oracle failed: ERROR: NMO not setuid-root
- The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.