This commit is contained in:
Qi 2025-04-17 17:05:05 +08:00
parent 75cfc9a49b
commit b6872a6127
4 changed files with 16 additions and 3 deletions

View File

@ -156,5 +156,6 @@ function sl() {
function addkeys() {
keychain -q ~/.ssh/dma-key > /dev/null 2>&1
keychain -q ~/.ssh/dma-owlery > /dev/null 2>&1
keychain -q ~/.ssh/wrdsupport2019 > /dev/null 2>&1
source ~/.keychain/`hostname`-sh
}

2
.rc.sh
View File

@ -3,7 +3,7 @@ source ~/.rc.func.sh
alias s=ssh
alias sd=sshed
alias grep='grep --color'
alias sj='ssh -CqTnN -D :1080'
alias sj='ssh -CqTnN -D :5777'
alias y='yadm'
alias yd='yadm diff'
alias yst='yadm status'

View File

@ -1,7 +1,5 @@
AddKeysToAgent yes
ForwardAgent yes
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
ServerAliveInterval 60
Host sslvpn
@ -17,6 +15,7 @@ Host esg
Hostname 10.123.191.101
Port 13911
User root
IdentityFile ~/.ssh/dma-key
Host wengine
Hostname 10.123.191.105
@ -67,3 +66,15 @@ Host io
HostName io.qhack.cn
Port 13911
User root
Host *.rsv2.wrdtech.com
checkhostip no
proxycommand nc -X 5 -x %h:1080 %h %p
user root
port 13911
identityfile ~/.ssh/wrdsupport2019
StrictHostKeychecking no
UserKnownHostsFile /dev/null
PreferredAuthentications publickey
HostKeyAlgorithms +ssh-rsa-cert-v01@openssh.com
PubkeyAcceptedAlgorithms +ssh-rsa-cert-v01@openssh.com

1
.zshrc
View File

@ -10,6 +10,7 @@ export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export QT_QPA_PLATFORM="wayland;xcb"
export SSHED_CONFIG_FILE="$HOME/.ssh/dma-config"
export COREPACK_ENABLE_AUTO_PIN=0
ZSH_THEME="headline"