- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh_config format
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-15-2005 11:43 PM
02-15-2005 11:43 PM
ssh_config format
I try to configure ssh a.03.81.002 on 11.11 box, but i have a format problem in ssh_config file.
Keys are "user" and "user.pub" stored in /home/user/.ssh/ dir.
I want to use user dependent key name. So i tried to setup in ssh_config file in client's file :
IdentityFile $HOME/.ssh/$LOGNAME --> don't work
IdentityFile %h/.ssh/%u --> don't work
And then hard path for one test user :
IdentityFile /home/xxx/.ssh/xxx
with xxx a real user with keys --> IT'S WORKING !
Could you help me in telling me what is the format of "IdentityFile" for user dependent name ?
Thanks a lot for help
Regards.
Francois
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 12:24 AM
02-16-2005 12:24 AM
Re: ssh_config format
It sounds to me that you're making the user changes to the system wide ssh_config /opt/ssh/etc/ssh_config rather than the user's ssh_config.
create $HOME/.ssh/ssh_config for that user. This file will only affect this user and not everyone on the box. Change the global ssh_config back to the default.
Also make sure that te user owns the $HOME/.ssh/ssh_config file and group/other aren't allowed write access.
Hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 01:53 AM
02-16-2005 01:53 AM
Re: ssh_config format
the env variables aren't read (they're seted of course, it's ok in shell) but why ?
Putting ssh_config in user's home don't work too.
Thanks for any suggestions.
Regards.
Francois
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 03:29 AM
02-16-2005 03:29 AM
Re: ssh_config format
ssh -i $HOME/.ssh/$LOGNAME server --> IS WORKING
with tusc -e trace :
grep -e HOME -e LOGNAME /tmp/tusc_ssh-i
env[5] @ 0x77ff043e: "LOGNAME=x051104"
env[13] @ 0x77ff04c8: "HOME=/home/system/x051104"
open("$HOME/.ssh/$LOGNAME", O_RDONLY|O_LARGEFILE, 0) ............... ERR#2 ENOENT
open("$HOME/.ssh/$LOGNAME", O_RDONLY|O_LARGEFILE, 0666) ............ ERR#2 ENOENT
open("$HOME/.ssh/$LOGNAME", O_RDONLY|O_LARGEFILE, 0666) ............ ERR#2 ENOENT
open("$HOME/.ssh/$LOGNAME.pub", O_RDONLY|O_LARGEFILE, 0666) ........ ERR#2 ENOENT
ssh server --> NOT working
with tusc -e trace :
grep -e HOME -e LOGNAME /tmp/tusc_ssh
env[5] @ 0x77ff0419: "LOGNAME=x051104"
env[13] @ 0x77ff04a3: "HOME=/home/system/x051104"
open("$HOME/.ssh/$LOGNAME", O_RDONLY|O_LARGEFILE, 0) ............... ERR#2 ENOENT
open("$HOME/.ssh/$LOGNAME", O_RDONLY|O_LARGEFILE, 0666) ............ ERR#2 ENOENT
open("$HOME/.ssh/$LOGNAME", O_RDONLY|O_LARGEFILE, 0666) ............ ERR#2 ENOENT
open("$HOME/.ssh/$LOGNAME.pub", O_RDONLY|O_LARGEFILE, 0666) ........ ERR#2 ENOENT
stat64("$HOME/.ssh/$LOGNAME", 0x77ff0d18) .......................... ERR#2 ENOENT
In the 2 case : $HOME and $LOGNAME look OK ...
thanks for help.
Regards
Francois
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 04:15 AM
02-16-2005 04:15 AM
Re: ssh_config format
Also use "ssh -vvv" for detailed output. If it's using the specified identity from your user's config, you'll see it.
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 04:21 AM
02-16-2005 04:21 AM
Re: ssh_config format
Hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2005 07:38 PM
02-20-2005 07:38 PM
Re: ssh_config format
your turn around is ok, putting config file in home dir make my connection ok.
But i'm afraid the solution couldn't been applyed. i have script to create user on multiplaform and only on hpux i have this problem. So i don't want to make a particular case for hp boxes, to preserv equality between different OS.
Thanks a lot for your help
Regards
Francois