GithubHelp home page GithubHelp logo

zcr268 / serv00-automation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bin862324915/serv00-automation

0.0 0.0 0.0 21 KB

本仓库用于定时自动化登录serv00的SSH连接执行指令并推送通知,可以实现定期登录保号,访问我的博客了解更多信息

Home Page: https://www.zzzwb.com/

Python 100.00%

serv00-automation's Introduction

说明

因serv00服务器要求,如果用户帐户在 90 天内未通过 DevilWEB 或 SSH 面板正确登录,则该帐户将自动从系统中删除,并且无法恢复该帐户收集的数据。

本仓库将用于定时自动化登录serv00的SSH连接执行指令并推送通知,可以实现定期登录保号的作用

tg交流群:https://t.me/zzzjsjl

希望大家点个Star🌟🌟🌟支持下

准备工作

  • 一个GitHub账号。

  • Fork本仓库

  • 准备好serv00账号

  • 获取您的 Telegram 用户或群组的 Chat ID。

  • 在您的 GitHub 仓库中设置以下 Secrets:

配置Secrets

  • 进入你fork本仓库后自己的仓库页面>“Settings” > “Secrets”中添加以下Secrets:

  • SSH_INFO:包含SSH连接信息的JSON字符串。以下是示例

    [
      {"hostname": "服务器号", "username": "用户名", "password": "密码"},
      {"hostname": "s5.serv00.com", "username": "user", "password": "password"},
      {"hostname": "s6.serv00.com", "username": "user6", "password": "password6"}
    ]
  • PUSHPLUS_TOKEN:pushplus申请的token

  • 新版已经将pushplus推送移除,请勿添加PUSHPLUS_TOKEN变量

  • 新版已经将pushplus推送移除,请勿添加PUSHPLUS_TOKEN变量

  • 新版已经将pushplus推送移除,请勿添加PUSHPLUS_TOKEN变量

  • TELEGRAM_TOKEN:您的 Telegram Bot API Token。示例:733255939:AAHsoQf-3lOoc1xC8le2d58qlfrCqEXzu74

  • TELEGRAM_CHAT_ID:您的 Telegram Chat ID(可以是您的私人聊天或群组)。示例:5329499650

  • PUSH:推送渠道值为mail或者telegram。示例:mail

  • MAIL:接收通知的邮箱。示例:[email protected]

测试运行

  • 在GitHub仓库的“Actions”选项卡中,手动触发运行一次工作流程。
  • “Actions”页面>"Run SSH Login">"Run workflow">"Run workflow"
  • 检查运行结果,没有报错说明就是运行成功了,可以点击运行记录的列表进去查看运行的详细情况

定时自动运行

  • 此工作流默认每月的 5号 北京时间 19 点运行

  • 可以根据自己的需求调整运行时间

    - cron: '0 11 5 * *'  # 每月的 5号 北京时间 19 点运行

注意事项

  • 保密性: Secrets 是敏感信息,请确保不要将它们泄露到公共代码库或未授权的人员。
  • 更新和删除: 如果需要更新或删除 Secrets,可以通过仓库的 Secrets 页面进行管理。

通过以上步骤,你就可以成功将代码 fork 到你的仓库下并运行它了。如果需要进一步的帮助或有其他问题,请随时告知!

serv00-automation's People

Contributors

bin862324915 avatar zcr268 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.