View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Sep 09, 2009 1:27 pm 
Offline
Joined: Wed Mar 02, 2005 1:34 pm
Posts: 106
Location: London, UK
Hi there. I've just installed R6 and the basics seem to be working.

I've added a new user using the adduser command and added it to the úsers' group. What do I need to do to allow me to log on to this account using ssh from another host? When I try it keeps refusing the password. Is there some other permission I need to set or should it just work?

Many thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 09, 2009 2:59 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
What's the exact error you're seeing? Anyone but root and mythtv should be allowed to ssh in. You can try editing /etc/ssh/sshd_config and at the bottom you can add:
Code:
AllowUsers <your_user_name>
then restart the ssh service:
Code:
sudo sv restart sshd

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 09, 2009 3:12 pm 
Offline
Joined: Wed Mar 02, 2005 1:34 pm
Posts: 106
Location: London, UK
Thanks for the reply.

The message I get is "Access denied".

I have added the username to the AllowUsers list in sshd_config like you said, and I still get the same error message.

When I installed Linhes I checked the option that said "deny remote access to root account", could it be related to that?

Many thanks again.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 09, 2009 3:57 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
What are the contents of these two files:

    /etc/hosts.allow
    /etc/hosts.deny

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 10, 2009 6:42 am 
Offline
Joined: Wed Jul 25, 2007 7:56 pm
Posts: 103
Location: Arlington, VA, USA
If it were something with /etc/hosts.allow or deny, I'd imagine he probably wouldn't even get an SSH prompt.

"Access denied" is what I get when I try to log in with an incorrect password. Maybe this is a silly question, but did you ever set a password for your new user? You didn't explicitly say so...

In any case, you might want to try resetting the password for this new user. As root, do

Code:
passwd newuser


And that should allow you to reset it to whatever you want. Then try logging in with ssh again.

_________________
MBE/FE: R6, P4 2.8 GHz/2 GB/2 TB, GeForce 6200 512 MB, PVR-150, Cisco RNG-100 cable box
FE: R6, P4 2.0 GHz/1 GB, GeForce4 MX 420 64 MB, diskless netboot


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 10, 2009 3:28 pm 
Offline
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location: Melbourne, Australia
Also, when you attempt to log in, use the "-v" option (assuming you're using a command line ssh client).

Mike

_________________
*********************
LinHES 7.4
Australian Dragon
*********************


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 19, 2009 9:05 am 
Offline
Joined: Wed Mar 02, 2005 1:34 pm
Posts: 106
Location: London, UK
Thanks for the feedback guys and apologies for the delay in responding. It must have been an issue with the password - I did originally set a password on the new account when I created it, but I must have been entering it wrong, as when I reset it, the account worked with the new password. Thanks for the assist guys!

My next question concerns Samba. I have been following the instruction on the wiki: http://www.knoppmythwiki.org/index.php? ... SambaHowTo

but they don't seem to work with R6 - there is no entry for samba under /etc/init.d

there is a folder for samba under /usr/lib/samba, does this mean it's installed, if so how do I start it?

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 19, 2009 9:19 am 
Offline
Joined: Wed Mar 02, 2005 1:34 pm
Posts: 106
Location: London, UK
Ah think I've found the solution here: http://knoppmyth.net/phpBB2/viewtopic.p ... ight=samba

Thanks.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu