diff options
author | Miguel Mota <hello@miguelmota.com> | 2022-05-02 15:28:59 -0700 |
---|---|---|
committer | Miguel Mota <hello@miguelmota.com> | 2022-05-02 15:28:59 -0700 |
commit | 4e917f6f44a065aabede824ee2e03e6a8d1da908 (patch) | |
tree | c951902d789b07ad4662b799e82da5e0aa918951 | |
parent | 7c063df60c5a1f1bee38bf4801ee01c83315865a (diff) |
Update docs
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | docs/content/faq.md | 16 |
2 files changed, 17 insertions, 1 deletions
@@ -265,7 +265,7 @@ docker-run-ssh: docker run -p 2222:22 -v ~/.ssh/demo:/keys -v ~/.cache/cointop:/tmp/cointop_config --entrypoint cointop -it cointop/cointop server -k /keys/id_rsa ssh-server: - go run cmd/cointop/cointop.go server -p 2222 + go run cmd/cointop/cointop.go server -p 2222 -k ~/.ssh/demo/id_rsa ssh-client: ssh localhost -p 2222 diff --git a/docs/content/faq.md b/docs/content/faq.md index a8ac596..865fd7f 100644 --- a/docs/content/faq.md +++ b/docs/content/faq.md @@ -517,6 +517,22 @@ draft: false cointop server -k ~/.ssh/id_rsa [...] ``` +## How do I fix the error `no matching host key type found. Their offer: ssh-rsa` when trying to SSH? + +Use the following flag when connecting to the SSH server: + + ```bash + ssh -oHostKeyAlgorithms=+ssh-rsa cointop.sh + ``` + +You can also add this config to the `~/.ssh/config` file so you don't have to use the flag every time: + +``` +Host cointop.sh + HostName cointop.sh + HostKeyAlgorithms=+ssh-rsa +``` + ## Why doesn't the version number work when I install with `go get`? The version number is read from the git tag during the build process but this requires the `GO111MODULE` environment variable to be set in order for Go to read the build information: |