ssh login as root

2007-03-10 Thread Dima Sorkin

Hi.
It _seems_ that FreeBSD does not allow root to login remotely via ssh.
I can miss something, but if I right, how
do I allow it ?

Thanks and regards,
Dima.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh login as root

2007-03-10 Thread David Schulz

You must specify to allow root in your sshd_config.

noone will ever recommend that you do that though.

On Mar 10, 2007, at 11:55 PM, Dima Sorkin wrote:


Hi.
It _seems_ that FreeBSD does not allow root to login remotely via ssh.
I can miss something, but if I right, how
do I allow it ?

Thanks and regards,
Dima.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions- 
[EMAIL PROTECTED]




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh login as root

2007-03-10 Thread Jeremy Gransden

On 3/10/07, Dima Sorkin [EMAIL PROTECTED] wrote:


Hi.
It _seems_ that FreeBSD does not allow root to login remotely via ssh.
I can miss something, but if I right, how
do I allow it ?

Thanks and regards,
Dima.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]






Its generally  not a good idea (hence, why it is turned off by default). You
can login as a user and su to root.

see sshd_config for how to turn it on.

jeremy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh login as root

2007-03-10 Thread Dima Sorkin

Hi.
Actually I would prefer to do it via su.
Here a really newbie question:
1) How do I join regular user to 'wheel' group ?
2) How do I join a user to some group 'some_group' ?.
Which manpage to read ?

Thanks,
Dima.

On 3/10/07, Guido Demmenie [EMAIL PROTECTED] wrote:


Default setting is that root can not login via ssh (and that's how
you want it).
You can use su(1) to gain root privileges when loged in on your box
with a normal
user if needed (if you are in the group wheel).

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh login as root

2007-03-10 Thread Boris Samorodov
On Sat, 10 Mar 2007 17:55:54 +0200 Dima Sorkin wrote:

 It _seems_ that FreeBSD does not allow root to login remotely via ssh.
 I can miss something, but if I right, how
 do I allow it ?

One should never login (local or remote) as root. Use an ordinary
login and then su/sudo only at a short period when you really need
it.

Anyway, you may do man sshd_config and /RootLogin to _read_ how to
allow root login via ssh.


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh login as root

2007-03-10 Thread Bill Moran
On Sat, 10 Mar 2007 18:43:43 +0200
Dima Sorkin [EMAIL PROTECTED] wrote:

 Hi.
  Actually I would prefer to do it via su.
 Here a really newbie question:
 1) How do I join regular user to 'wheel' group ?
 2) How do I join a user to some group 'some_group' ?.
 Which manpage to read ?

man pw (but this one is quite a read)

You can also edit /etc/group directly, see man 5 group

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh login as root

2007-03-10 Thread David Schulz

Hi,

man pw

here is a nice tutorial - http://www.bsdguides.org/guides/freebsd/ 
beginners/manage_users_pw.php


Bye,
David

On Mar 11, 2007, at 12:43 AM, Dima Sorkin wrote:


Hi.
Actually I would prefer to do it via su.
Here a really newbie question:
1) How do I join regular user to 'wheel' group ?
2) How do I join a user to some group 'some_group' ?.
Which manpage to read ?

Thanks,
Dima.

On 3/10/07, Guido Demmenie [EMAIL PROTECTED] wrote:


Default setting is that root can not login via ssh (and that's how
you want it).
You can use su(1) to gain root privileges when loged in on your box
with a normal
user if needed (if you are in the group wheel).

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions- 
[EMAIL PROTECTED]




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh login as root

2007-03-10 Thread J.D. Bronson

At 06:43 PM 3/10/2007 +0200, you wrote:

Hi.
Actually I would prefer to do it via su.
Here a really newbie question:
1) How do I join regular user to 'wheel' group ?
2) How do I join a user to some group 'some_group' ?.
Which manpage to read ?

Thanks,
Dima.


Easiest way?

vi /etc/group

man group


-JD 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh login as root

2007-03-10 Thread Jerry McAllister
On Sat, Mar 10, 2007 at 05:55:54PM +0200, Dima Sorkin wrote:

 Hi.
 It _seems_ that FreeBSD does not allow root to login remotely via ssh.
 I can miss something, but if I right, how
 do I allow it ?

You can change the config file to allow it, but that is considered
poor security.   The thing to do is to create a non-root account to
log in to and add that id to the wheel group in /etc/group file.
Then log in as that user and su to root only for those things that
need root.

jerry

 
 Thanks and regards,
 Dima.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh login as root

2007-03-10 Thread Jerry McAllister
On Sat, Mar 10, 2007 at 06:43:43PM +0200, Dima Sorkin wrote:

 Hi.
 Actually I would prefer to do it via su.
 Here a really newbie question:
 1) How do I join regular user to 'wheel' group ?
 2) How do I join a user to some group 'some_group' ?.
 Which manpage to read ?

Just edit the /etc/group file - using vi probably or any other text editor.
On the line that establishes the wheel group, just add the user id
on the end separated with a comma.
eg.   add  ',otherid'  to the end of the line.
Save (write) and quit.   It is now there.

jerry

 
 Thanks,
 Dima.
 
 On 3/10/07, Guido Demmenie [EMAIL PROTECTED] wrote:
 
 Default setting is that root can not login via ssh (and that's how
 you want it).
 You can use su(1) to gain root privileges when loged in on your box
 with a normal
 user if needed (if you are in the group wheel).
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh login as root

2007-03-10 Thread Wojciech Puchar




On Sat, 10 Mar 2007, Jerry McAllister wrote:


On Sat, Mar 10, 2007 at 05:55:54PM +0200, Dima Sorkin wrote:


Hi.
It _seems_ that FreeBSD does not allow root to login remotely via ssh.



see /etc/ssh/sshd_config and change permitroot to yes
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]