So the problem seems to be merely a sshd conf issue.
What kind of authentication is this server using? in other words: what is the __exact__ command Putty uses to log in as root? And please paste the config of sshd. It has been working so who or what changed something. What activities did occur when it stopped working? |
Quote:
Code:
[root@server ~]# chkconfig --list |
Quote:
How do I view the sshd config? I have only had the server for a dew days and the server service setup everything up except the vnc server I did that. As long as I had the server I've had this issue. |
Quote:
cat /etc/ssh/sshd_config |
Code:
[root@server ~]# cat /etc/ssh/sshd_config |
So this server has a control panel called directadmin. I've never used a control panel before and could this be the reason why I've been having so many issues with my users?
|
Edit the /etc/ssh/sshd_config file and add:
AllowUsers mike Also, you should not allow root to log in via ssh, to stop it (ONLY IF MIKE WORKS) change this line: #PermitRootLogin yes to PermitRootLogin no ---------- Post added 02-22-12 at 09:13 PM ---------- Quote:
AllowUsers admin Also, there is a user called "admin" in your /etc/passwd file. The UID is 501 so it was the first user created (after root): admin:x:501:501::/home/admin:/bin/bash |
Quote:
and the username admin also does not work I already tried to login to that user and I changed the password for admin and still nothing. |
OH MY!!! IT WORKS!!! finnaly!!! thank you so much! but I'm still curious about my question above how would I get root access if I disable ssh for root?
EDIT: oh and I guess I was just putting the wrong password in for admin because it worked right after I changed it. |
Disabling SSH for root just means root can not log in "remotely". Once you log in as Mike you can use the following command to "become" root.
su - You will be prompted for the root password after issuing the above command. |
Quote:
|
I'm not sure if this helps but I believe it was the original problem.
I hope I read this right. http://www.cyberciti.biz/tips/linux-...to-system.html |
Wow, late to the party, but I figured I'd comment on this. I was looking at your useradd commands, and it appears that you might not have created a home directory for your user. Can you verify if a user directory was created in /home(or wherever you have home directories). useradd -m $USERNAME will create a new account AND a new home directory for that user in the default location. This may be related to your problem(but you probably already have it figured out by now).
|
Quote:
|
All times are GMT -5. The time now is 08:16 PM. |