Compare commits

...

5 Commits
1.0 ... master

Author SHA1 Message Date
luming
98ded5b70f remove validate.
All checks were successful
continuous-integration/drone/push Build is passing
2021-12-13 11:20:36 +08:00
luming
62a1e9f700 auto build.
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-20 10:09:08 +08:00
luming
0ce3b74122 auto build.
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-20 09:59:05 +08:00
luming
aa3c1f168f auto build.
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-19 20:17:25 +08:00
luming
5aceccb6e2 auto build. 2021-10-19 20:15:03 +08:00
4 changed files with 34 additions and 7 deletions

View File

@ -26,3 +26,19 @@ steps:
when:
event:
- 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

9
Dockerfile Normal file
View File

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

View File

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