HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Generating key for a user
Operating System - HP-UX
1834742
Members
2817
Online
110070
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
08-07-2006 08:47 AM
08-07-2006 08:47 AM
There is a request to generate a ssh key for a user for testing failover on MCSG. Can someone help how to do this? The request is on the failover box.
Thanks
Brian
Thanks
Brian
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 09:02 AM
08-07-2006 09:02 AM
Re: Generating key for a user
login as root on the primary node and copy authorized-hosts file foor the user from .ssh directory to failover node.
or
/usr/bin/ssh-keygen
and copy to primary and alternate node.
or
/usr/bin/ssh-keygen
and copy to primary and alternate node.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 09:03 AM
08-07-2006 09:03 AM
Solution
log into the server as root, on which you need to create the key
su - specific_username
/opt/ssh/bin/ssh-keygen -t dsa
when you are asked to enter passphrase, enter it (twice) if you want it to be used for authentication. If no password access is requested hit enter twice without any other keys for blank passphrase.
log out of specific_username
now you will have 2 files under ~specific_username/.shh named
id_dsa
id_dsa.pub
copy id_dsa.pub to the other node, under the same user's .ssh directory
login to the other node
su - specific_username
cat id_dsa.pub >> authorized_keys
then test it.
su - specific_username
/opt/ssh/bin/ssh-keygen -t dsa
when you are asked to enter passphrase, enter it (twice) if you want it to be used for authentication. If no password access is requested hit enter twice without any other keys for blank passphrase.
log out of specific_username
now you will have 2 files under ~specific_username/.shh named
id_dsa
id_dsa.pub
copy id_dsa.pub to the other node, under the same user's .ssh directory
login to the other node
su - specific_username
cat id_dsa.pub >> authorized_keys
then test it.
________________________________
UNIX because I majored in cryptology...
UNIX because I majored in cryptology...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP