A A A

Please consider registering
guest

Log In

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
SSH Authentication Refused: Bad Ownership or Modes for Directory when setup user passwordless ssh for Oracle cluster.
November 21, 2013
9:08 am
Lo0oM
Admin
Forum Posts: 217
Member Since:
September 30, 2012
Offline

Hi All

 

Description:

I need to setup passwordless ssh for user grid to install Oracle 12c cluster on Solaris 11 sparc nodes.

When i start setup ssh from GUI of grid installed it report that installation was successful, but command: ssh node2 date

ask for password. After debugging ssh i found the next error:

Authentication Refused: Bad Ownership or Modes for Directory /export/home/grid (home directory of user grid)

 

Solution:

1. To debug ssh run next commands from node1 as root from local console of server:

svcadm disable ssh

ps -ef |grep ssh

kill -9 PID (process ID, to close all ssh sessions)

/usr/lib/ssh/sshd -p 22 -d -d

Ctrl+C (to end debug)

 

2. From second node as user grid:

ssh node1 date

 

3. On the first node console you will see output of debug and errors.

If you will see error from above go to the next step.

 

4. on both nodes:

su – grid

chmod go-w ~/

chmod 700 ~/.ssh

chmod 600 ~/.ssh/authorized_keys

 

Thats all. If you have any other error you can try the following solutions:

1. try to add:

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc,blowfish-cbc
to /etc/ssh/sshd_config file of both nodes and restart ssh
svcadm restart ssh

2. add:
AuthorizedKeysFile .ssh/authorized_keys
to /etc/ssh/sshd_config file of both nodes and restart ssh
svcadm restart ssh


3. If you make passwordless ssh for root user on Solaris 11 run:
rolemod -K type=normal root


Sources: 1, 2

Thank you.
Forum Timezone: UTC 0

Most Users Ever Online: 31

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 0

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 3

Forums: 20

Topics: 214

Posts: 214

Newest Members: Lo0oM

Administrators: Lo0oM (217)