- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH Error : Authentication refused: bad ownership...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2017 08:42 AM
07-10-2017 08:42 AM
Hello,
I want to connect on a server B with root user using ssh from a server A. I dont want to type password so I added the server A public key to the server B /.ssh/authorized_keys.
It was working for several days, but since today, the server asks for password.
I've checked the syslog on server B (/var/adm/syslog/syslog.log) and there is :
sshd[21007]: Authentication refused: bad ownership or modes for directory /
For me the directory or files attibutes ar correct :
# ll /
total 1314
drwx------ 2 root sys 8192 Jul 10 16:12 .ssh
# ll /.ssh
total 32
-rw------- 1 root sys 228 Jul 7 14:19 authorized_keys
-rw------- 1 root sys 3368 Jul 10 15:45 known_hosts
Can you tell me how can I see the "/" attributes (owner and mode) ? Why do I have this error ?
Thanks,
Regards,
Antony
Solved! Go to Solution.
- Tags:
- ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2017 10:44 AM
07-10-2017 10:44 AM
Re: SSH Error: Authentication refused: bad ownership or modes for directory /
> Can you tell me how can I see the "/" attributes?
By adding -d of course.
>Why do I have this error?
Have you tried "ssh -vvv" for more details?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2017 12:18 AM
07-11-2017 12:18 AM
SolutionHello,
thanks you for your answer. 've change the "/" mode and it's working now :-)
ll -d /
drwxrwxrwx 36 root root 8192 Jul 11 03:20 /
chmod 755 /
ll -d /
drwxr-xr-x 36 root root 8192 Jul 11 03:20 /
Now it's ok !
Thansk,
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2017 07:18 AM
07-11-2017 07:18 AM
Re: SSH Error: Authentication refused: bad ownership or modes for directory /
You can turn off file and directory permission checks by setting the StrictModes parameter to no in the sshd_config file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2017 05:36 AM
07-12-2017 05:36 AM
Re: SSH Error: Authentication refused: bad ownership or modes for directory /
Yes, you can... however having the system's root directory fully writable by everyone is generally a bad idea, so it's a good thing this authentication error caused it to be uncovered and fixed.