New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ssh: handshake failed: knownhosts: key is unknown exit status 1 #28
Comments
That's because the public key is not a known host, the public ip not in Before you can connect to a new host you should trust the host public key first with: |
The |
Can you update the code in readme file with goph.AddKnownHost usage. |
You could possibly ignore the KnownHost if you want.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not able to ssh to EC2 instance . Below is the error
ssh: handshake failed: knownhosts: key is unknown
exit status 1
package main
import (
"fmt"
"log"
)
func main() {
}
The text was updated successfully, but these errors were encountered: