Git Product home page Git Product logo

autossh's Issues

配置文件建议

可否将host的配置文件单独分离出来? 比如我想通过iCloud存host配置文件, 这样多个mac就不用来回拷贝配置文件了

然后其他的配置信息(比如host配置文件的位置)放在本地config.json就好了, 这样就不用每次添加 -c

update failed

$ ./build.sh
build autossh-macOS-amd64_v1.1.0 ...
stat src/main/main.go: no such file or directory
updating: autossh-macOS-amd64_v1.1.0/ (stored 0%)
updating: autossh-macOS-amd64_v1.1.0/install (deflated 43%)
updating: autossh-macOS-amd64_v1.1.0/config.json (deflated 72%)
clean autossh-macOS-amd64_v1.1.0

看着像少代码

一个小建议

在 app.go 的app.checkInput() 函数中加上:
Printer.Errorln("输入有误,请重新输入!") app.showServers()

可能会更美观些

MFA无法登陆

如果登陆需要MFA 密码的话,autossh无法正确连接(应该显示mfa 让用户输入mfa串,然后连接的)

Monterey报错了

fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x12193bf, 0x21)
/usr/local/go/src/runtime/panic.go:616 +0x81 fp=0x7ff7bfeff8c8 sp=0x7ff7bfeff8a8 pc=0x1028301
runtime.goenvs()
/usr/local/go/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff8f8 sp=0x7ff7bfeff8c8 pc=0x1025e83
runtime.schedinit()
/usr/local/go/src/runtime/proc.go:501 +0xd6 fp=0x7ff7bfeff960 sp=0x7ff7bfeff8f8 pc=0x102abe6
runtime.rt0_go(0x7ff7bfeff990, 0x1, 0x7ff7bfeff990, 0x1000000, 0x1, 0x7ff7bfeffb40, 0x0, 0x7ff7bfeffb79, 0x7ff7bfeffbb5, 0x7ff7bfeffbf7, ...)
/usr/local/go/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff968 sp=0x7ff7bfeff960 pc=0x10503f4
用了这个项目很久了,很好用,不维护了吗

where is the autossh in install

最重要的autossh脚本哪里去了? macOS上面 不需要自己build吧。 虽然自己build过,也没看到autossh的脚本(或可执行程序)

运行报错

系统 mac os 10.13.6
go 版本1.6.2 和 1.11.1试过

./autossh -c ./config.json

panic: runtime error: slice bounds out of range

goroutine 1 [running]:
autossh/core.params.Get(0x1211e14, 0x2, 0x1211e16)
	/Users/linbo/develop/golang/src/autossh/core/params.go:23 +0x280
main.main()
	/Users/linbo/develop/golang/src/autossh/main.go:25 +0x783

小建议

工具非常好用,谢谢大佬。
有个小建议,如果配置文件中只配置了一个服务器,能不能跳过选择界面,默认进入。

Windows 平台编译出错

autossh-1.1.0在Windows平台编译出错,错误信息如下:

C:\go\Project\src>go build -o autossh -ldflags "-X main.Version=v1.1.0 -X main.Build=201909092119" autossh/src/main/main.go

autossh/src/app

autossh\src\app\server.go:367:29: undefined: syscall.SIGWINCH
autossh\src\app\show_cp.go:301:34: not enough arguments in call to syscall.Syscall
autossh\src\app\show_cp.go:301:35: undefined: syscall.SYS_IOCTL
autossh\src\app\show_cp.go:303:11: undefined: syscall.TIOCGWINSZ

C:\go\Project\src>go version
go version go1.12.9 windows/amd64

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.