LinHES Forums
http://forums.linhes.org/

[SOLVED] I can no has SSH anymore?
http://forums.linhes.org/viewtopic.php?f=21&t=21008
Page 1 of 1

Author:  mattbatt [ Tue Apr 20, 2010 6:37 pm ]
Post subject:  [SOLVED] I can no has SSH anymore?

For some reason I have lost the Ability to SSH into my new Machine I have tried root and mythtv but both come back as "Access denied" Where should I start looking to fix this problem?
I have created a band-aid for it I created a new account called mattbatt and I can log in over SSH that way but that is kind of a pain to log in then have to su to mythtv or root.
Any ideas linux gurus.
Also if I do get SSH working properly again how do I get rid of the mattbatt user or should I just leave it alone?

Author:  Too Many Secrets [ Tue Apr 20, 2010 7:05 pm ]
Post subject:  Re: I can no has SSH anymore?

mattbatt wrote:
For some reason I have lost the Ability to SSH into my new Machine I have tried root and mythtv but both come back as "Access denied" Where should I start looking to fix this problem?
I have created a band-aid for it I created a new account called mattbatt and I can log in over SSH that way but that is kind of a pain to log in then have to su to mythtv or root.
Any ideas linux gurus.
Also if I do get SSH working properly again how do I get rid of the mattbatt user or should I just leave it alone?


I did about the same in a test box I've been using. Seems there was something cecil wrote about this... iirc

Author:  Martian [ Wed Apr 21, 2010 1:01 pm ]
Post subject: 

I believe both root and mythtv users are not allowed ssh access by default for security reasons.

You actually did the "right" thing by creating a standard user to use for ssh access however if you really want to ssh as root or mythtv (despite the security risks) you should be able to re-enable them by editing /etc/ssh/sshd_config

you will need to make the following edits:

For root access:

Code:
PermitRootLogin yes
#DenyUsers root


For mythtv access:
Code:
#DenyUsers mythtv


You will then need to restart ssh.

Hope this helps.

Martian

Author:  mattbatt [ Wed Apr 21, 2010 8:41 pm ]
Post subject: 

I don't SSH from outside my local network and my router doesn't redirect to the mythtv server so I felt safe with those two being open.
Thank you for the help.

Author:  Martian [ Thu Apr 22, 2010 11:31 am ]
Post subject: 

Glad you got it fixed up!

I'd still advise against opening up the mythtv user as the password is well known and root will give you everything you need.

Author:  mattbatt [ Thu Apr 22, 2010 9:17 pm ]
Post subject: 

My bad I should have specified I changed that password A LOOOONG time ago.

Author:  Martian [ Fri Apr 23, 2010 2:46 pm ]
Post subject: 

mattbatt wrote:
My bad I should have specified I changed that password A LOOOONG time ago.

:mrgreen:

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/