---
title: RSA NetWitness Logs & Network 11.x ssh login fails with error no hostkey alg
description: "Issue\nTrying to ssh login to a NetWitness 11.x appliance fails returning the error message, \"no hostkey alg\" \nputty 192.168.1.1[SSH] Server Versi"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/rsa-netwitness-logs-network-11-x-ssh-login-fails-with-error-no-hostkey-alg#main-content)

![NW Logo](https://mydev.netwitness.com/hs-fs/hubfs/Portal-Partner%20Program/AssetFiles/NW%20Logo%20(2).png?width=180&height=32&name=NW%20Logo%20(2).png)

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

Open main navigation

Close main navigation

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [NetWitness Knowledge Base](https://mydev.netwitness.com/knowledge-base?hsLang=en)
2. [Break Fix](https://mydev.netwitness.com/knowledge-base/break-fix?hsLang=en)

April 30, 2026

# RSA NetWitness Logs & Network 11.x ssh login fails with error no hostkey alg

#### Issue

 Trying to ssh login to a NetWitness 11.x appliance fails returning the error message, "no hostkey alg"   
 

 putty 192.168.1.1

\[SSH\] Server Version OpenSSH\_7.4   
\[SSH\] FAIL: no hostkey alg

\[SSH\] INFO: DISCONNECT

#### Cause

 CentOS7 ssh security has increased where the RSA and DSA HostKey algorithms by default are no longer configured to be used by the sshd service.

Instead, the CentOS7 sshd service is now configured to use the ECDSA and ED25519 HostKey algorithms.

Older versions of ssh client software like putty.exe versions older than 0.70, and CentOS6 ssh can only use the RSA and DSA HostKey algorithms or are only configured to use these older HostKey algorithms.

#### Workaround

 Whilst upgrading the CentOS6 ssh HostKeyAlgorithms security to ecdsa-sha2-nistp256 or ecdsa-sha2-nistp384 is the preferred solution, if this is not acceptable, the following 2 other alternatives can be considered but are less preferred.

1. "Upgrade" the CentOS6 system to CentOS7.  
    Note this option is not available for the nw-backup tool backup server as this tool requires CentOS6, refer to nw-backup requirements in the [RSA Security Analytics Configuration Data Backup and Restore Guide for version 10.6.6](https://community.rsa.com/docs/DOC-99789)
2. Downgrade the sshd security of the NetWitness 11.x appliances.

 To return sshd security back to the level of CentOS6.

Do this on all the Netwitness 11.x appliances with the following commands,

Confirm the following 2 files exist.   
 

 ls -l /etc/ssh/ssh\_host\_rsa\_key /etc/ssh/ssh\_host\_dsa\_key 

If any of the 2 files don't exist then create the missing file with commands,   
 

 ssh-keygen -q -N "" -t rsa -f /etc/ssh/ssh\_host\_rsa\_key   
ssh-keygen -q -N "" -t dsa -f /etc/ssh/ssh\_host\_dsa\_key

 chgrp ssh\_keys /etc/ssh/ssh\_host\_rsa\_key /etc/ssh/ssh\_host\_dsa\_key 

Update the sshd\_config file to allow use of the RSA and DSA HostKey algorithms,   
 

 cd /etc/ssh/   
cp -p sshd\_config sshd\_config.orig   
vi sshd\_config 

Uncomment the lines, or add the lines if they are missing in the sshd\_config file,   
 

 HostKey /etc/ssh/ssh\_host\_rsa\_key   
HostKey /etc/ssh/ssh\_host\_dsa\_key 

Restart the sshd service,   
 

 systemctl restart sshd

#### Resolution

1. For putty client software upgrade to version 0.70 or newer.
2. For other 3rd party ssh client software upgrade to their latest version that supports the ECDSA and ED25519 HostKey algorithms.
3. For CentOS6 ssh version 5.3 and above it can support the ECDSA HostKey algorithm, but it needs to be configured.

SSH login to the CentOS6 appliance.

Check the ssh version is 5.3 or above with the command,   
 

 ssh -V 

If the ssh version is 5.3 or above then add the ECDSA HostKey algorithm to the ssh\_config file,   
 

 cd /etc/ssh   
 

 cp -p ssh\_config ssh\_config.orig

echo "HostKeyAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ssh-rsa,ssh-dss" \> /etc/ssh/ssh\_config

service sshd restart 

Test the change by trying to ssh login to a NetWitness 11.x appliance.

#### Notes

 SSH supports several public key HostKey algorithms for authentication keys. These include:

**RSA** - an old algorithm based on the difficulty of factoring large numbers. A key size of at least 2048 bits is recommended for RSA; 4096 bits is better.  RSA is getting old and significant advances are being made in factoring.  Choosing a different Hostkey algorithm may be advisable.  It is quite possible the RSA algorithm will become practically breakable in the foreseeable future.  All SSH clients support this algorithm.

**DSA** - an old US Government Digital Signature Algorithm.  It is based on the difficulty of computing discrete logarithms.  A key size of 1024 would normally be used with it.  DSA in its original form is no longer recommended.

**ECDSA** - a new Digital Signature Algorithm standardized by the US government, using elliptic curves.  This is probably a good algorithm for current applications.  Only three key sizes are supported: 256, 384, and 521 (sic!) bits.  We would recommend always using it with 521 bits, since the keys are still small and probably more secure than the smaller keys (even though they should be safe as well).  Most SSH clients now support this algorithm.

**ED25519** - this is a new algorithm added in OpenSSH.  Support for it in clients is not yet universal.  Thus its use in general purpose applications may not yet be advisable.

#### Internal Comments

**Vincent Wareham -- 10 Jul 2019**   
Initial document creation.

#### Product Details

**RSA Product Set:** NetWitness Logs & Network   
**RSA Version/Condition:** 11.x   
**Platform:** CentOS   
**O/S Version:** 7

#### Summary

Trying to ssh login to a NetWitness 11.x appliance fails returning the error message, no hostkey alg

#### Approval Reviewer Queue

RSA NetWitness Suite Approval Queue

[![Netwitness Logo](https://mydev.netwitness.com/hs-fs/hubfs/Quote%20Template%20-%20NW%20Logo/Netwitness%20Logo.png?width=158&height=42&name=Netwitness%20Logo.png "Netwitness Logo")](https://mydev.netwitness.com/?hsLang=en)

<https://www.linkedin.com/company/netwitness-platform/> <https://www.youtube.com/@netwitness>

Copyright © 2026, NetWitness LLC. All rights reserved.

[NetWitness Platform](https://www.netwitness.com/)

[Acceptable Use Policy](https://www.netwitness.com/wp-content/uploads/Acceptable-Use-Policy-092022.pdf) [Privacy Statement](https://www.netwitness.com/wp-content/uploads/NetWitness-Privacy-Statement-07292024.pdf)

![NetWitness Logo](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/netwitness-logo-RGB-white%201.png)

[![LinkedIn](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/linkedin.png)](https://www.linkedin.com/company/netwitness-platform/) [![YouTube](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/Youtube.jpg)](https://www.youtube.com/@netwitness)

© 2026 NetWitness LLC. All rights reserved.