Remote ssh login as root


 
Thread Tools Search this Thread
Operating Systems Solaris Remote ssh login as root
# 1  
Old 06-29-2005
Remote ssh login as root

I edited my /etc/default/login file and commented the line:


# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
#CONSOLE=/dev/console


I still cant login thru telnet or ssh.
What else do i have to do to be able to login remotely as root?

Thanks,
Brian
# 2  
Old 06-29-2005
try rebooting
# 3  
Old 06-29-2005
sorry i should have included that in my note.
Coming from Windows, I'm used to rebooting.

I did 2 reboots. same thing.

;-)
# 4  
Old 06-29-2005
Did you create an ssh trusted key file, an .rhosts file, or a hosts.equiv file?
# 5  
Old 06-29-2005
the /etc/default/login file is for general use, at ssh you have to edit your /etc/ssh/sshd_config too. there is a line:
PermitRootLogin no
set the value to yes and then:
pkill -HUP sshd

greetings PRESSY
# 6  
Old 06-30-2005
what version of ssh are you running? ssh2 or OpenSSH?

There shouldn't be a restriction on root. Can you ssh as a non root user?

Does it prompt you for a password? Try running ssh -v -v -v


and make sure all files in $HOME/.ssh are chmoded to 600

and public key of the machine you are connecting from is in authorized_keys on target machine
# 7  
Old 07-01-2005
Thanks for the help, you guys definitly turned me in the right direction.

I was using OpenSSH and I edited the ssh_config file instead of the sshd_config file.

Something else happened that i have a question for, I made the change to the sshd_config file, then to make the change take effect I tried a pkill -HUP which didnt work, then I stop and started ssh. that did not work either.
I had to reboot my workstation to get it to take effect.

Does anyone know why that was? How can I get ssh ro re-read the config file without bouncing the box?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Commands not working with ssh remote login

Hi Friends, I am unable to run our application commands on remote server using ssh (passwordless login enabled). But the same command running with telent perl script. please suggest. SSH: C:/bin>ssh -l monitor tl04cp01 exec "/home/monitor/123" /home/monitor/123: viewlog: not found. ... (7 Replies)
Discussion started by: suresh3566
7 Replies

2. AIX

ssh failed to login in remote connection

i am in node acbs01b and i use the root@fcbs01b to login and i have the below message . ssh root@fcbs01b @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT... (6 Replies)
Discussion started by: thecobra151
6 Replies

3. UNIX for Dummies Questions & Answers

How to disable root login (Not over SSH)?

I have already disabled root login over the ssh by modifying /etc/ssh/sshd_config. But how would i disable root login on a server itself. We have implemented LDAP in our environment and our security guide states that root login must be obtained by first logging into the host using his/her own... (2 Replies)
Discussion started by: pinga123
2 Replies

4. Solaris

how to login with ssh to remote system with out applying the remote root/usr password

how to login with ssh to remote system with out applying the remote root/user password with rlogin we can ujse .rhosts file but with ssh howits possible plz guide (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

5. Linux

ssh - disable direct root login

Hi Guys.... I am a newbie to unix. I have a requirement. I have a server. I have to configure ssh to disable direct root login and then add a user with sudo access to this server.Then change the ssh port to 22315 and the server should permit the ssh only from my local machine ip.I also have to... (1 Reply)
Discussion started by: mahesh_raghu
1 Replies

6. UNIX for Dummies Questions & Answers

doubt in ssh command for remote login

Hello sir, Im using ubuntu distro. We all know that ssh is used for password less entry.So, I have the public key and the IP address and the username thats it. Now to login it to the system either I should have password or a private key.Now I have the blacklist of private/public keys. But I dont... (1 Reply)
Discussion started by: nsharath
1 Replies

7. Solaris

Deny root remote login help

I'm attempting to deny a user's ability to login as root through any remote means - ie telnet or ssh. I've read most of the threads that I can find on this site and I've looked at BigAdmin on Sun's site. I have done what has been suggested here and on BigAdmin which is to make sure that the line... (5 Replies)
Discussion started by: gonzotonka
5 Replies

8. Shell Programming and Scripting

Remote login through ssh

Hi , I need to login to remotemachines through ssh and move some logfiles to my localmachine. My servername,username and password will be store in the .profile file. can any one please help me in this? This will be a cronjob so Password can't be enter at run time. Thanks in advance Subin (5 Replies)
Discussion started by: subin_bala
5 Replies

9. AIX

Problems with disabling remote root login

Hello! I'm going through security checklist for AIX 5.3 and i just can't disable remote login for root through ssh. What i did: - in /etc/security/user i added a line: rlogin = false which works fine when i try to login through telnet - after installation of openSSH i edited... (3 Replies)
Discussion started by: veccinho
3 Replies

10. UNIX for Advanced & Expert Users

SSH remote login problem

Hi: I have been given the responsibility of administering AIX 3.1 machine in my lab recently. And, I am having trouble logging on to the machine using SSH through windous systems. Thus, now no one is able to access it!! The following error message is displayed when I tried to login: "The... (3 Replies)
Discussion started by: pdepa
3 Replies
Login or Register to Ask a Question