SSH Private Key not authenticating Issue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } The credential test from the instance is unsuccessful, with Authentication Failed message. While using SSH Private Key in Xanadu.MID server agent logs for the credential test: 2025-02-27 17:42:57 ERROR (SSHProtocolEngine) [OpenSSH_KeyProducer:126] OpenSSH parsing failed : com.snc.ssh.exceptions.OpenSSHParseException: Unsupported OpenSSH key : ssh-rsa at com.snc.ssh.keys.openssh.IOpenSSHPrivateKeyDecoder.getPrivateKeyDecoder(IOpenSSHPrivateKeyDecoder.java:26) at com.snc.ssh.keys.OpenSSH_KeyProducer.decodePrivateKey(OpenSSH_KeyProducer.java:52) at com.snc.ssh.keys.OpenSSH_KeyProducer.parse(OpenSSH_KeyProducer.java:99) at com.snc.ssh.keys.OpenSSH_KeyProducer.produce(OpenSSH_KeyProducer.java:124) at com.snc.ssh.keys.AKeyProducer.getKeyPair(AKeyProducer.java:37) at com.snc.ssh.auth.PublicKeyAuth.isValid(PublicKeyAuth.java:65) at com.snc.ssh.auth.AuthMethods.getAuthMethod(AuthMethods.java:128) at com.snc.ssh.msgs.UserAuthFailureMsg.process(UserAuthFailureMsg.java:36) at com.snc.ssh.msgs.ReadMsg.deframeBinaryPacket(ReadMsg.java:113) at com.snc.ssh.msgs.ReadMsg.process(ReadMsg.java:63) at com.snc.ssh.SSHProtocolEngine.run(SSHProtocolEngine.java:106) at java.base/java.lang.Thread.run(Thread.java:840) 2025-02-27 17:42:57 DEBUG (Worker-Interactive:CommandPipeline-220da2a81b486a546b396310604bcb6f) [AKeyedConnectionFactory:338] SSHSessionFactory: Authentication failure. Blacklisting key Facts<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } The hostkey algorithms in the MID server property must be customized according to the supported algorithm. Reference - https://www.servicenow.com/docs/csh?topicname=mid-ssh-algorithms.html&version=latest From the above article, refer to "Customize the SSH algorithms priority list" for customizing the supported algorithm.Only 'ED25519' private key is supported if generated by OpenSSH. Reference - https://www.servicenow.com/docs/csh?topicname=r_SSHCredentialsForm.html&version=latest Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Xanadu Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } The private key must be converted to PEM format using the following command. ssh-keygen -p -m PEM -f <private-key-file>