vs code remote ssh 免密登录
命令:ssh-keygen -- 生成id_rsa
命令:cp id_rsa.pub /home/用户名/.ssh --拷贝文件
命令:cat id_rsa.pub >> authorized_keys -- 复制内容到authorized_keys
命令:sudo chmod 600 authorized_keys -- 修改权限
命令:systemctl restart ssh --重启ssh服务
大功告成
Love the neighbor. But don't get caught.