How to suppress BambooTrustedKeyServerKeyVerifier unverified RSA key warnings in logs

Still need help?

The Atlassian Community is here for you.

Ask the community

Purpose

Bamboo 5.10 introduces Trusted Keys which allows you to restrict SSH connections to specified known hosts. When Trusted Keys is disabled however, you may encounter warnings like the following appearing in atlassian-bamboo.log:

2016-05-17 18:34:33,043 WARN [sshd-SshClient[1703435b]-nio2-thread-2] [BambooTrustedKeyServerKeyVerifier] Server at my.bitbucketserver.com/192.168.123.101:7999 presented unverified RSA key: SHA256:JwAQ+JgCWhKvqkmHcfWuidrjX31DoMlGvfhPUHEPKg0

It is possible to suppress these entries if you would like to omit them from your logs

Solution

For Bamboo versions prior 9

  • Open your log4j.properties file, which is located at $BAMBOO_INSTALL/atlassian-bamboo/WEB-INF/classes/log4j.properties
  • Add the following property to the end of the file: 


log4j.category.com.atlassian.bamboo.plugins.ssh.BambooTrustedKeyServerKeyVerifier=ERROR


  • Restart Bamboo for the new property to take effect

For Bamboo version 9 and above

  • Open your log4j2.properties file, which is located at $BAMBOO_INSTALL/atlassian-bamboo/WEB-INF/classes/log4j2.properties
  • Add the following property to the end of the file: 

logger.bamboo-trusted.level=ERROR
logger.bamboo-trusted.name=com.atlassian.bamboo.plugins.ssh.BambooTrustedKeyServerKeyVerifier
  • Restart Bamboo for the new property to take effect

Note: If you enable Trusted Keys, these warnings will also disappear. 

Last modified on Aug 18, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.