Scripts that been used frequently.
常用脚本:
Issue a ssh key
1 | ssh-keygen -t rsa -b 4096 -C "your_email@example.com" |
Issue cert:
1 | curl https://get.acme.sh | sh |
Or:
1 | wget -O - https://get.acme.sh | sh |
Renew the certs:
1 | acme.sh --renew -d example.com --force |
Upgrade:
1 | acme.sh --upgrade |
生成 pem 文件:
1 | cat fullchain.cer domain.key >> domain.pem |
V2ray:
1 | bash <(curl -L -s https://install.direct/go.sh) |
Shadowsocks:
1 | https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh |
Git:
1 | git config --global http.proxy socks5://127.0.0.1:10086 |
Repository Config For SSH:
1 | [core] |
上面的配置中,url 决定了使用哪种方式与git仓库进行连接。
SSH 设置别名
以下配置可以实现 ssh xxx
直接登录服务器。
1 | Host aliasofyourserver |