"SSH_PKS: Failed to read private key" error
search cancel

"SSH_PKS: Failed to read private key" error

book

Article ID: 368358

calendar_today

Updated On:

Products

ISG Proxy

Issue/Introduction

Event logs on Edge SWG show the following lines:

 "SSH_PKS: can't open keyring to read /legacy/cache_engine/persistent/replicated/volatile/sg7/ssh/sshd/ssh_host_ecdsa_key"  0 300000:64  ssh_pks.cpp:144
 "SSH_PKS: Failed to read private key for /legacy/cache_engine/persistent/replicated/volatile/sg7/ssh/sshd/ssh_host_ecdsa_key"  0 300000:1  ssh_pks.cpp:551
 
 "SSH_PKS: can't open keyring to read /legacy/cache_engine/persistent/replicated/volatile/sg7/ssh/sshd/ssh_host_ed25519_key"  0 300000:64  ssh_pks.cpp:144
 "SSH_PKS: Failed to read private key for /legacy/cache_engine/persistent/replicated/volatile/sg7/ssh/sshd/ssh_host_ed25519_key"  0 300000:1  ssh_pks.cpp:575

Cause

These errors mean that someone is trying to establish SSH session with Edge SWG using ECDSA or ed25519 key and these keys are not configured on Edge SWG (by default).

Resolution

Create ECDSA and ed25519 keys: