最近帖子
标签筛选 #google · 共 2 条
#Google Suite #CLI: Gmail, GCal, GDrive, GContacts. https://github.com/steipete/gogcli
#Google#GCP 小鸡一键 DD #Debian 下载脚本 curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh && chmod +x debi.sh 获取网络信息 GCP_IP=$(curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip) GCP_GW=$(curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/gateway) 执行脚本: - 修改用户名 - 端口号 - SSH 公钥链接 sudo ./debi.sh \ --version 13 \ --user peter \ --authorized-keys-url "https://github.com/YourUserName.keys" \ --ssh-port 22222 \ --ip "$GCP_IP" \ --gateway "$GCP_GW" \ --netmask 255.255.240.0 \ --dns "169.254.169.254 8.8.8.8" sudo reboot 后等待片刻,用新的凭据登录 SSH @dejavuBlog