Skip to content
This repository was archived by the owner on Aug 24, 2024. It is now read-only.
Jeffrey edited this page Feb 18, 2023 · 9 revisions

1. no matching host key type found. Their offer: ssh-rsa

# ssh version
[23:30:46] ❯ ssh -V
OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022

# Solution
## add the follwoing to /etc/ssh/sshd_config
Include /etc/ssh/sshd_config.d/*.conf

PubkeyAcceptedKeyTypes +ssh-rsa
HostKeyAlgorithms +ssh-rsa

## update ~/.ssh/config
Host xxxx
  User guanzenghui
  PubkeyAcceptedKeyTypes +ssh-rsa
  HostKeyAlgorithms +ssh-rsa

## gen pub key
ssh-keygen -t rsa

2. Mason or treesitter is slow

search keyword speed in repo

-- lua/modules/editor/treesitter.lua
require("nvim-treesitter.install").command_extra_args = {
	curl = { "--proxy", "http://127.0.0.1:7890" },
}

....

-- lua/modules/completion/lsp.lua
mason.setup({
	max_concurrent_installers = 30,
	-- speed
	github = {
		download_url_template = "https://ghproxy.com/https://github.com/%s/releases/download/%s/%s",
	},
})
....

-- lua/modules/completion/lsp.lua
mason_lspconfig.setup({
	-- speed
	github = {
		download_url_template = "https://ghproxy.com/https://github.com/%s/releases/download/%s/%s",
	},
	automatic_installation = true,
})
...

Clone this wiki locally