-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
306 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,9 @@ tags | |
# dot files | ||
.* | ||
|
||
# zip files | ||
*.gz | ||
|
||
# git | ||
!.gitignore | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
v2024-12-27 | ||
* git: | ||
更新了配置文件 | ||
* ssh: | ||
更新 ssh 密钥 | ||
* zsh: | ||
优化了 sshenv | ||
|
||
v2024-12-26.2 | ||
* zsh: | ||
现在nd sshenv 生成 ed25519 密钥 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,12 +40,17 @@ | |
askPass = | ||
editor = vim | ||
quotepath = false | ||
[filter "lfs"] | ||
clean = git-lfs clean -- %f | ||
process = git-lfs filter-process | ||
required = true | ||
smudge = git-lfs smudge -- %f | ||
[gui] | ||
encoding = utf-8 | ||
#[http] | ||
# proxy = http://localhost:8889 | ||
# proxy = http://localhost:10809 | ||
#[https] | ||
# proxy = http://localhost:8889 | ||
# proxy = http://localhost:10809 | ||
[i18n] | ||
logoutputencoding = utf-8 | ||
[i18n "commit"] | ||
|
@@ -58,5 +63,5 @@ | |
default = simple | ||
[user] | ||
email = [email protected] | ||
name = Qin Fandong | ||
signingkey = B66CC194 | ||
name = 秦凡东 | ||
signingkey = 43E6919A7C6150C354A77DA9ECFF404B11F89583 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
个人 SSH 密钥备份。 | ||
个人 SSH 密钥备份。因为 RSA 密钥已经不被支持,可能需要在 `sshd` 配置文件中配置 `PubkeyAcceptedKeyTypes +ssh-rsa` 。 | ||
|
||
```sh | ||
gpg -o ./ssh-env.tar.gz -d ./ssh-env.tar.gz.asc | ||
sshenv import ./ssh-env | ||
rm -f ./ssh-env.tar.gz | ||
导入。 | ||
|
||
```bash | ||
sshenv import <(gpg --default-key $(cat ./fingerprint) -o- -d <(base64 -d ./ssh-env.tar.gz.asc.base64)) | ||
``` | ||
|
||
因为 RSA 密钥已经不被支持,需要在配置文件中添加 `PubkeyAcceptedKeyTypes +ssh-rsa` 。 | ||
导出。 | ||
|
||
```bash | ||
sshenv export ssh-env | ||
base64 >./ssh-env.tar.gz.asc.base64 < <(gpg -r $(cat ./fingerprint) -o- -ae ./ssh-env.tar.gz) | ||
rm -f ./ssh-env.tar.gz | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4444 9495 01B3 CC2A 7657 9C08 25FF D92A B66C C194 | ||
43E6919A7C6150C354A77DA9ECFF404B11F89583 |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters