Compare commits

..

No commits in common. "master" and "1.0" have entirely different histories.
master ... 1.0

4 changed files with 7 additions and 34 deletions

View File

@ -26,19 +26,3 @@ steps:
when: when:
event: event:
- tag - tag
- name: publish_docker
image: plugins/docker:latest
pull: if-not-exists
settings:
username:
from_secret: hub_username
password:
from_secret: hub_password
repo: rainerosion/ssh-manager
tags: latest
build_args:
- ssh_manage=./ssh_manage
dockerfile: Dockerfile
when:
branch:
- master

View File

@ -1,9 +0,0 @@
FROM alpine:latest
ARG ssh_manage
ENV TIME_ZONE=Asia/Shanghai
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && apk update && apk add tzdata \
&& ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime && echo $TIME_ZONE > /etc/timezone
WORKDIR /root
ADD ${ssh_manage} /root/
EXPOSE 8082
CMD [ "/root/ssh_manage" ]

View File

@ -5,17 +5,15 @@
![](https://img.shields.io/github/forks/t924417424/ssh_manage) ![](https://img.shields.io/github/forks/t924417424/ssh_manage)
![](https://img.shields.io/github/issues/t924417424/ssh_manage) ![](https://img.shields.io/github/issues/t924417424/ssh_manage)
- _**去除短信验证码登录,改为帐号密码登录,首次登录会创建帐号**_ go版本多用户webssh管理工具
- go版本多用户webssh管理工具 项目仅用于学习交流,未经允许禁止任何其他用途
- 项目仅用于学习交流,未经允许禁止任何其他用途 ssh2ws部分代码修改自https://github.com/hequan2017/go-webssh
- ssh2ws部分代码修改自https://github.com/hequan2017/go-webssh 2020/12/17 新增WEB_SFTP功能拖动文件到终端窗口里即可上传
- 2020/12/17 新增WEB_SFTP功能拖动文件到终端窗口里即可上传 服务端不保存用户明文密码,且不保存解密秘钥,如需对其他用户开放,请不要修改此部分代码,以免造成不必要的损失!
- 服务端不保存用户明文密码,且不保存解密秘钥,如需对其他用户开放,请不要修改此部分代码,以免造成不必要的损失!
## 开发框架 ## 开发框架

View File

@ -33,7 +33,7 @@ login = function () {
errshow("手机号码有误,请重填!"); errshow("手机号码有误,请重填!");
return false; return false;
} }
if (code.length < 6) { if (isNaN(code) || code.length < 4) {
errshow("密码过短,请重新输入!"); errshow("密码过短,请重新输入!");
return false; return false;
} }