{"id":25930715,"url":"https://github.com/muzihuaner/openconnect-login-linux-shellscript","last_synced_at":"2026-06-05T03:31:45.116Z","repository":{"id":276896112,"uuid":"930661951","full_name":"muzihuaner/Openconnect-Login-Linux-ShellScript","owner":"muzihuaner","description":"OpenConnect Linux 客户端登陆脚本","archived":false,"fork":false,"pushed_at":"2025-02-11T02:21:20.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T23:25:07.737Z","etag":null,"topics":["openconnect","vpn","vpn-client"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muzihuaner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-11T02:03:46.000Z","updated_at":"2025-02-11T02:25:34.000Z","dependencies_parsed_at":"2025-02-11T03:31:41.103Z","dependency_job_id":null,"html_url":"https://github.com/muzihuaner/Openconnect-Login-Linux-ShellScript","commit_stats":null,"previous_names":["muzihuaner/openconnect-login-linux-shellscriptshells"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/muzihuaner/Openconnect-Login-Linux-ShellScript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muzihuaner%2FOpenconnect-Login-Linux-ShellScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muzihuaner%2FOpenconnect-Login-Linux-ShellScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muzihuaner%2FOpenconnect-Login-Linux-ShellScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muzihuaner%2FOpenconnect-Login-Linux-ShellScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muzihuaner","download_url":"https://codeload.github.com/muzihuaner/Openconnect-Login-Linux-ShellScript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muzihuaner%2FOpenconnect-Login-Linux-ShellScript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33928630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openconnect","vpn","vpn-client"],"created_at":"2025-03-03T23:22:38.079Z","updated_at":"2026-06-05T03:31:45.100Z","avatar_url":"https://github.com/muzihuaner.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openconnect-login-linux-ShellScriptshells\nOpenConnect Linux 客户端登陆脚本  \n### 功能：  \n代替 Cisco 的 AnyConnect 客户端；  \n可以实现无交互的静默登录；\n\n## 安装OpenConnect\n### 安装源（Redhat系列）\n```\nyum install epel-release\n```\n###  安装客户端（Redhat系列）\n```\nyum install openconnect\n```\n\n###  安装客户端（Debian系列）\n```\napt install openconnect\n```\n\n\n## 查看帮助\n```\nopenconnect -h\n```\n## 安装脚本\n此处使用密码登录，无密码登录需要服务端配合设置证书。\n为了实现自动输入密码，使用了管理命令，也可以使用 expect 实现自动执行 Shell 的交互操作。\n\n```\nsudo mkdir -p /opt/openconnect\nsudo wget -O /opt/openconnect/openconnect.sh https://raw.githubusercontent.com/muzihuaner/Openconnect-Login-Linux-ShellScript/refs/heads/main/openconnect.sh\nsudo chmod +x /opt/openconnect/openconnect.sh\n\n```\n修改相关信息\n```\nnano /opt/openconnect/openconnect.sh\nserver=vpn.abc #VPN服务器地址\ngroup=User #用户组\nuser=user1 #用户名\npassword=passwd #用户密码\n```\n### 执行\n# 登录\n./openconnect.sh login\n# 注销\n./openconnect.sh logout\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuzihuaner%2Fopenconnect-login-linux-shellscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuzihuaner%2Fopenconnect-login-linux-shellscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuzihuaner%2Fopenconnect-login-linux-shellscript/lists"}