配置vscode免密和github免密

也是一直忘记

做个备份

1
2
3
4
5
6
cat ~/.ssh/id_rsa.pub # 本机公钥
vi ~/.ssh/authorized_keys # 配置ssh免密

vi /etc/ssh/sshd_config # 增加ssh登录
PubkeyAuthentication # 取消注释
service ssh restart # 重启ssh服务