Keyless ssh access doesnt work but with ROOT user

Support for security such as Firewalls and securing linux
Post Reply
eduardo.andres
Posts: 2
Joined: 2015/09/15 15:05:24

Keyless ssh access doesnt work but with ROOT user

Post by eduardo.andres » 2015/09/15 15:23:37

Hi everybody:

I´ve a problem when configuring my ssh passwordless connection between 2 nodes os a further Oracle RAC. The problem is that i´ve tried to configure this whit root user and it works correctly, but when i try to do with oracle user, it success without error but ssh user@node date (for example) it takes me a prompt asking me for the password... :S

The methods i´ve followed was the same in root and oracle users:

- ssh-keygen -t rsa
- ssh-copy-id user@node

(The above works with root but dont with oracle)

-ssh-keygen
-scp /home/oracle/.ssh/id_rsa.pub oracle@node2:/home/oracle/.ssh/authorized_keys


i´ve typed that into the two nodes (changing the destination node)

I´m very lost, because ive checked everything, permissions (.ssh folder has 600 and the files inside 700)

Can anyone help me???


Thanks you very much!!!!

(And i´m sorry for my bad english, i dont usually talk in english)


I realized i´m a boor!!! First of all, my name is Eduardo, from Madrid, and i´m newer on Centos administration, i was a Windows administrator before.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Keyless ssh access doesnt work but with ROOT user

Post by gerald_clark » 2015/09/15 19:03:32

On both machines:

make sure /home/oracle is mode 700
restorecon -R /home/oracle

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Keyless ssh access doesnt work but with ROOT user

Post by TrevorH » 2015/09/15 20:16:46

Also look in /var/log/secure on the server for error messages which might tell you exactly what the problem is.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

eduardo.andres
Posts: 2
Joined: 2015/09/15 15:05:24

Re: Keyless ssh access doesnt work but with ROOT user

Post by eduardo.andres » 2015/09/16 09:43:48

Good morning everybody!

I´ve tried everythig but doesnt woks! so this morning i've installed everything (S.O, prequisites, etc) and the first thig i did was to set the passwordless connectivity logining as oracle and..... IT WORKS!!!!! doing every step from zero using exactly the same proccedures, now WORKS!!!! i dont know why (the log only had exceptions) but it doesnt matters now haha


Thanks you very much!

Post Reply