I’m using SSH.net version 2024.0.0, but I cannot connect to an Ubuntu machine using openssh-server with a user certificate. However, I can connect using the command “ssh -i user-key username@host” in PowerShell. Does anyone have a problem like mine? thanks
private key format
—–BEGIN OPENSSH PRIVATE KEY—–
—–END OPENSSH PRIVATE KEY—–
I can connect using the command “ssh -i user-key username@host” and it works fine.
(https://i.sstatic.net/BNq1Iizu.png)
This is my code
(https://i.sstatic.net/CbwDLoZr.png)
This is the error I have encountered
(https://i.sstatic.net/yrcIn750.png)
Cong Thanh Huynh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.