- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: SSH Problem
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
Forums
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
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
02-23-2004 11:36 PM
02-23-2004 11:36 PM
SSH Problem
There are two systems A & B
I am generating SSH key using ssh_keygen in a file under my home directory.
This file I am taking from machine A to Machine B under my home /home/prashant/.ssh/authorized_keys.
Now if I try to do ssh harjit@b
ideally this shall not ask for password, but it is asking...
I have checked file permissions and everything, bounced sshd and inetd...changed nsswitch.conf, no luck...
Error is given below:
Feb 24 06:51:41 bslgdc-linux1 sshd[6450]: Authentication refused: bad ownership or modes for directory /home/harjit
Please help..
Will assign points
Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 12:39 AM
02-24-2004 12:39 AM
Re: SSH Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 01:05 AM
02-24-2004 01:05 AM
Re: SSH Problem
Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 01:19 AM
02-24-2004 01:19 AM
Re: SSH Problem
chmod it to 644
_
chmod the .ssh directory to 700
+
see that the owner of the .ssh/authorized_keys file is the correct owner.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 02:02 AM
02-24-2004 02:02 AM
Re: SSH Problem
Feb 24 06:51:41 bslgdc-linux1 sshd[6450]: Authentication refused: bad ownership or modes for directory /home/harjit
SSH verifies *recursively* the permission settings down to "/".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 02:41 AM
02-24-2004 02:41 AM
Re: SSH Problem
Attaching a good doc. You can use cat >> instead of X windows.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 08:02 PM
02-24-2004 08:02 PM
Re: SSH Problem
Remove write-permission for group and world:
chmod go-w $HOME
If things don't work simply remove all
write permissions for group and world
of $HOME, $HOME/.ssh and $HOME/.ssh/* on
both server and client side.
This fixes 90% of my known ssh problems :-)
Regards,
Armin