islenbo / autossh Goto Github PK
View Code? Open in Web Editor NEWNo password ssh client for Mac/Linux, one key login remote server. 一个SSH远程客户端,可一键登录远程服务器,主要用来弥补Mac/Linux Terminal SSH无法保存密码的不足。
License: MIT License
No password ssh client for Mac/Linux, one key login remote server. 一个SSH远程客户端,可一键登录远程服务器,主要用来弥补Mac/Linux Terminal SSH无法保存密码的不足。
License: MIT License
可否将host的配置文件单独分离出来? 比如我想通过iCloud存host配置文件, 这样多个mac就不用来回拷贝配置文件了
然后其他的配置信息(比如host配置文件的位置)放在本地config.json就好了, 这样就不用每次添加 -c
了
RT, 是bug还是故意这么设计的?
$ ./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 密码的话,autossh无法正确连接(应该显示mfa 让用户输入mfa串,然后连接的)
cp: ./autossh: No such file or directory
加载配置文件失败 invalid character '/' looking for beginning of object key string
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
用了这个项目很久了,很好用,不维护了吗
最重要的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
配置文件在哪个目录下 啊?
能否支持mac m1芯片?
工具非常好用,谢谢大佬。
有个小建议,如果配置文件中只配置了一个服务器,能不能跳过选择界面,默认进入。
ssh dial fail: ssh: handshake failed: ssh: no common algorithm for client to server cipher; client offered: [aes128-ctr aes192-ctr aes256-ctr [email protected] arcfour256 arcfour128], server offered: [aes128-cbc 3des-cbc blowfish-cbc cast128-cbc arcfour aes192-cbc aes256-cbc [email protected]]
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\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
ssh dial fail:ssh: handshake failed: ssh: no common algorithm for client to server cipher; client offered: [[email protected] [email protected] aes128-ctr aes192-ctr aes256-ctr], server offered: [aes128-cbc 3des-cbc des-cbc]
是否考虑支持二次验证呢?
不是交互式,而是基于给定的secret自动计算验证码输入登陆。
我这边通过expect实现了交互式输入,但是对tcl不熟在windows下不会用(目前通过wsl调用expect脚本跳转)。
不清楚本项目的ssh实现是否支持程序内完成二次验证码的输入。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.