doc: add README
This commit is contained in:
commit
e72308b56f
21
README.md
Normal file
21
README.md
Normal file
@ -0,0 +1,21 @@
|
||||
# Lab 配置模版仓库
|
||||
|
||||
> 请参考如下步骤配置您的本地 ssh config
|
||||
|
||||
## 成果预览
|
||||
|
||||
```sh
|
||||
ssh lab.evlic.cn
|
||||
PTY allocation request failed on channel 0
|
||||
Hi there, evlic! You've successfully authenticated with the key named login, but Gitea does not provide shell access.
|
||||
If this is unexpected, please log in with password and setup Gitea under another user.
|
||||
Connection to lab.gitea.evlic.cn closed.
|
||||
```
|
||||
|
||||
## 配置步骤
|
||||
|
||||
1. [用户设置 / 管理 SSH 密钥](/user/settings/keys)
|
||||
|
||||
2. 查看 SSH 密钥生成文档并妥善保管密钥
|
||||
3. 👉 增加密钥
|
||||
4. 查看本仓库 [config]()
|
15
config
Normal file
15
config
Normal file
@ -0,0 +1,15 @@
|
||||
Include ~/.orbstack/ssh/config
|
||||
|
||||
# 自定义配置示例
|
||||
# Host {name} // 配置快捷名
|
||||
# HostName {host} // 指定域名
|
||||
# Port {port} // 指定默认端口
|
||||
# User {user} // 指定默认用户
|
||||
# IdentityFile ~/.ssh/id_rsa // 指定默认密钥文件
|
||||
|
||||
Include config.d/*.ssh
|
||||
|
||||
ServerAliveInterval 30
|
||||
ServerAliveCountMax 100
|
||||
|
||||
|
5
config.d/git.ssh
Normal file
5
config.d/git.ssh
Normal file
@ -0,0 +1,5 @@
|
||||
Host lab.evlic.cn
|
||||
HostName lab.gitea.evlic.cn # 指定域名
|
||||
Port 10022 # 指定默认端口
|
||||
User git # 指定默认用户
|
||||
IdentityFile ~/.ssh/{key_file} # 指定默认密钥文件
|
Loading…
Reference in New Issue
Block a user