PowerFlex: 以金鑰為基礎的 SSH 驗證失敗,並傳回「invalid privatekey」
摘要: 在 PowerFlex Gateway 上使用 SSH 驗證時,由於建立 SSH 金鑰的方法,部署 PowerFlex 可能會失敗。
本文章適用於
本文章不適用於
本文無關於任何特定產品。
本文未識別所有產品版本。
症狀
使用 Gateway 的 PowerFlex 部署將會失敗,並在閘道上出現以下錯誤。
** scaleio-trace.log **
INFO c.e.s.s.i.s.i.c.SSHNodeConnection - Connecting to LinuxSystemNode[nodeName=<null>,nodeIPs=[172.1.1.1],credentials=NodeCredentials[domain=<null>,userName=root]]
WARN c.e.s.s.i.s.i.c.SSHNodeConnection - No credentials for SSH connection to node LinuxSystemNode[nodeName=<null>,nodeIPs=[172.1.1.1],credentials=NodeCredentials[domain=<null>,userName=root]], attempting keypass
INFO ssh.SSHClient - Creating SSHClient with keys for 172.1.1.1
INFO c.e.s.s.d.i.c.ValidateNodeCommand - running pre-executor for .ValidateNodeCommand
INFO c.e.s.s.d.i.c.ValidateNodeCommand - running pre-executor for .ValidateNodeCommand complete in 0 ms
WARN c.e.s.s.i.s.i.c.SSHNodeConnection - SSHNodeConnection: Failed to root@172.1.1.1. Reason: invalid privatekey: [B@3a7c1234
ERROR c.e.s.s.i.s.i.c.SSHNodeConnection - No password in the credentials for node LinuxSystemNode[nodeName=<null>,nodeIPs=[172.1.1.1],credentials=NodeCredentials[domain=<null>,userName=root]], SSH key failed as well.
INFO c.e.s.s.i.s.i.NodeConnectionFactoryImpl - for node LinuxSystemNode[nodeName=<null>,nodeIPs=[172.19.244.71],credentials=NodeCredentials[domain=<null>,userName=root]] we should create new connection
ERROR c.e.s.scaleio.lockbox.LockBoxService - Trying to use LockBox, but it doesn't exist yet.
ERROR c.e.s.s.d.i.c.ValidateNodeCommand - Error The SSH key authentication failed on node 172.1.1.1, verify it matches the key on the gateway executing command .ValidateNodeCommand (retry): com.emc.s3g.scaleio.im.services.installation.connectors.SSHNodeConnection.connect(SSHNodeConnection.java:382)
原因
私密金鑰應使用 RSA 建立,且應採用 PEM 格式。
解析度
請確定私密金鑰為 PEM 格式。
比如:
# file /root/.ssh/id_rsa
/root/.ssh/id_rsa: PEM RSA private key
# cat /root/.ssh/id_rsa
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
如果檔案類型不同,請將其轉換為 PEM 檔案或使用命令建立 ssh 金鑰。
ssh-keygen -m pem -t rsa受影響的產品
PowerFlex Software文章屬性
文章編號: 000188885
文章類型: Solution
上次修改時間: 10 5月 2026
版本: 5
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。