How to suppress BambooTrustedKeyServerKeyVerifier unverified RSA key warnings in logs

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

目的

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

ソリューション

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. 

最終更新日 2022 年 8 月 18 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.