- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH key generation / home directory
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
04-20-2007 01:47 AM
04-20-2007 01:47 AM
Can any one tell me why when I change a users home directory on the client server that my password-less login doesn't work anymore? I have moved all the appropriate keys to the new home directory and have verified permissions are correct (I have also regenerated the keys to see if that was the problem). Does the .ssh directory always need to be in /home/user/? I'm trying to change the home directory of the user to /var/data/.
Thanks,
Greg
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2007 01:51 AM
04-20-2007 01:51 AM
SolutionAlso, /home is typically 755 but var is 555 - that could cause an issue...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2007 04:02 AM
04-20-2007 04:02 AM
Re: SSH key generation / home directory
/var/data and /var/data/.ssh should be owned by the user and can't be group or world writable. (unless you setup sshd_config with 'StrictModes no' - wouldn't recommend it)
Check permissions.
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2007 04:17 AM
04-20-2007 04:17 AM
Re: SSH key generation / home directory
about who is unhappy and why.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2007 04:20 AM
04-20-2007 04:20 AM
Re: SSH key generation / home directory
After reading your comments, I spent some time really analysing the permissions. I had world writable permissions on the home directory.
# chmod 755 homeDir
This did the trick.
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2007 04:30 AM
04-20-2007 04:30 AM
Re: SSH key generation / home directory
if the dir containing the keys was in some other place, as long as the ownership and mode bits for this dir are secure in SSH's view.
But you may have to tell your ssh client where it will find the keys now,
and probably also where the known_hosts file can be found now (unless you run with -o stricthostkeychecking=no, but who wants to do that)
e.g.
$ ssh -l remote_user -i /var/data/id_rsa_something -o userknownhostsfile=/var/data/known_hosts remote_host remote_cmd
Please, look what the real filename of the *private* keyfile looks like.
This is what needs to be passed to -i or -o identityfile=/path/id_rsa_realname
Though it may work if you provide all the extra options,
using strange locations for ssh client's config makes things really awkward.