- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: re-generating ssh host keys
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
Discussions
Forums
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
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-12-2007 04:06 AM
тАО04-12-2007 04:06 AM
I've recently cloned a box using ignite. I would now like to regenerate the host keys in /etc/opt/ssh/ssh_host*
Can anybody tell me how to re-generate the host keys
Thanks
Michael
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2007 04:07 AM
тАО04-12-2007 04:07 AM
Re: re-generating ssh host keys
Will do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2007 04:20 AM
тАО04-12-2007 04:20 AM
Re: re-generating ssh host keys
I need to re-generate the host keys rather than user keys. When I run the ssh-keygen -t dsa, this will promote me to create the ./ssh/id_dsa rather than /etc/opt/ssh/ssh_host_key
Thanks
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2007 05:04 AM
тАО04-12-2007 05:04 AM
Re: re-generating ssh host keys
Generate ssh host keys using as per your requirements.
# ssh-keygen -t (rsa/dsa) -f /etc/opt/ssh/ssh_host_{rsa/dsa}_key -N ''
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2007 05:07 AM
тАО04-12-2007 05:07 AM
Re: re-generating ssh host keys
This is because host key generation requires a null new passphrase.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2007 05:17 AM
тАО04-12-2007 05:17 AM
Re: re-generating ssh host keys
Thanks for the reply, I'm okay with generating the ssh_host_rsa_key and ssh_host_dsa_key. In the /etc/opt/ssh directory it has 3 sets of keys
ssh_host_rsa_key
ssh_host_dsa_key
ssh_host_key
How do you generate the ssh_host_key
Thanks
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2007 05:17 AM
тАО04-12-2007 05:17 AM
Re: re-generating ssh host keys
ssh-keygen can be used to create both user's and hosts' SSH keys.
You can specific the file name /etc/opt/ssh/ssh_host* in the prompt.
That will create the SSH key for the host.
Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2007 05:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2007 05:39 AM
тАО04-12-2007 05:39 AM
Re: re-generating ssh host keys
# ssh-keygen -f /etc/opt/ssh/ssh_host_key -N ''
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2007 05:48 AM
тАО04-12-2007 05:48 AM
Re: re-generating ssh host keys
ssh-keygen -t rsa
Generates a smaller key file.
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
тАО04-12-2007 07:38 AM
тАО04-12-2007 07:38 AM