What change in freeBSD OS to allow root logging using ssh?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users What change in freeBSD OS to allow root logging using ssh?
# 1  
Old 01-17-2006
What change in freeBSD OS to allow root logging using ssh?

Hi everybody, ]

I would like to ask just simpe and short question. I am using freeBSD 6.0 and Debian Sarge.
From Debian console I can log as root using ssh to bsd mashine but not vice versa.
When I say in bsd console su I got sorry output, it does not allow me to su to root when I am logged as ordinary user.

My question is:
what and where I shoul change in freeBSD sistem in order to allow me ssh loging as root and
loging from user shell to root shell? Is this possible?

Thank you in advance.
# 2  
Old 01-17-2006
if i'm not mistaken, u need to be in wheel group in order to su to root.
& for using root for ssh u need to change it in sshd conf.
# 3  
Old 01-17-2006
man sshd_config

You'll see
PermitRootLogin

Set this within your sshd_config (normally /etc/ssh/sshd_config) to
PermitRootLogin yes

Then restart the ssh daemon. Check if BSD has some mechanism that locks down root logins to the console too.... (e.g. Solaris has a CONSOLE variable in /etc/default/login - there may be a BSD equivalent - check your documentation).

Cheers
ZB
# 4  
Old 01-18-2006
Ok, thanks for your help. I added ordinary user in wheel group and now I can su from user shell.
Also I uncomented and changed to yes in
/etc/ssh/sshd_config
line
PermitRootLogin yes
but I cannot still login from Debina machine to my freeBSD machine as root but vice versa I can do it.

It is not such big problem for me now because I can become root at remote macnine first logging as plane user and then su to root, but I am just curious about this.

I tried free BSD couple mounths ago, after two years using Debian, and now freeBSD is still running on my server, of course it is testing because I am not still good in freeBSD administration, but iti is very similar to Debian administaration and I am hoping it will become primary distribution on my server

Thank you for your help

Regards
# 5  
Old 01-18-2006
I forgot to restart ssh deamon and i suposse it is problem why that did not work for me...


I will do it today later
Smilie
# 6  
Old 01-19-2006
When I rebooted machine everything was ok.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Can a root role change the root password in Solaris 10?

i do not have root on a solairs 10 server , however i do have the root role, i was wondering if I can change the root password as a a role with the passwd command? I have not tried yet. and do i have to use the # chgkey -p afterwards? i need to patch is why i am asking. thanks (1 Reply)
Discussion started by: goya
1 Replies

2. Ubuntu

Root access that can't change root password?

We are having a little problem on a server. We want that some users should be able to do e.g. sudo and become root, but with the restriction that the user can't change root password. That is, a guarantee that we still can login to that server and become root no matter of what the other users will... (2 Replies)
Discussion started by: 244an
2 Replies

3. SuSE

Auditors want more security with root to root access via ssh keys

I access over 100 SUSE SLES servers as root from my admin server, via ssh sessions using ssh keys, so I don't have to enter a password. My SUSE Admin server is setup in the following manner: 1) Remote root access is turned off in the sshd_config file. 2) I am the only user of this admin... (6 Replies)
Discussion started by: dvbell
6 Replies

4. Shell Programming and Scripting

Create script for change root password via SSH

HI I 'm new shall script and unix. I want to create script for change password root by ssh-keygen command . I have 50 servers and I want ot login ot the servers via ssh by type ones password and can login every machines.The script ssh-keygen must ot generate key every weekly than it send new... (2 Replies)
Discussion started by: pellnapook
2 Replies

5. UNIX for Dummies Questions & Answers

How to avoid logging with root user?

I have created a linux machine and installed some softwares on it with root user privileges . I used to login with root user credentials for doing the various task. Later i have realise that this is not the best practice to follow and there should be a new user with less privileges to be created... (1 Reply)
Discussion started by: pinga123
1 Replies

6. HP-UX

problem in logging into root

when i am trying to login through root i am getting following error Last successful login for root: Tue Feb 3 16:44:40 IST-5:30 2009 on pts/tc Last unsuccessful login for root: Tue Feb 3 16:41:01 IST-5:30 2009 on pts/tc Please wait...checking for disk quotas crt0: ERROR couldn't open... (6 Replies)
Discussion started by: mnmca
6 Replies

7. Solaris

Prevent users logging in as root

I would like to know how to prevent users connecting to a server using SSH as root. I would still like them to be able to login with their username and then change to su. But I would like to prevent them logging in directly as root. I have searched the forum and read that I should set... (3 Replies)
Discussion started by: Sepia
3 Replies

8. OS X (Apple)

SSH Logging?

Does anybody know if MacOS X (10.3.X) is capable of logging ssh access? I want to be able to see who has logged into my system via SSH, similar to the way Apache or FTP logs access (/private/var/logs/). The only thing that I am finding right now is the the initiation of a PID in the "system.log",... (0 Replies)
Discussion started by: esser
0 Replies

9. SuSE

Logging in as root on SuSE 9.1

When I try to log on as root now all it does is load YaST. When I used to log on as root it would have a desktop and all...what has happened? Thanks in advance. (10 Replies)
Discussion started by: CTroxtell21
10 Replies

10. UNIX for Advanced & Expert Users

Logging in and then su to root

We have several people that log in using root. What I need to do is have everyone to log in using there own account then su to root. How would I do this. We have aix 4.2 (5 Replies)
Discussion started by: eyounes
5 Replies
Login or Register to Ask a Question