gko / ssh-connect Goto Github PK
View Code? Open in Web Editor NEWπ simple ssh manager based on bash/zsh history
License: MIT License
π simple ssh manager based on bash/zsh history
License: MIT License
Really glad to find this little useful utility for (recent) ssh connections.
I am trying to find out why I get a connect: empty list while I am using it on macos (10.14) with zsh.
I managed to run the ssh-history command (cat "$HISTFILE" | grep -E "^ssh\s" | sed -e 's/\s*$//' | sort | uniq -c | sort -nr | sed -e "s/^\s*[0-9]*\s//") on bash and I got the history lines contain ssh. But otherwise I cannot make it to work.
Mojave, oh-my-zsh, zsh 5.3. The plugin finds and displays several ssh sessions in the history, but if i choose any of them I get the output: (eval):cd:1: too many arguments
Which confuses me because I can't find a "cd" command present in the ssh-connect tree.
4 ssh dev
1 ssh root@dev
1 ssh cyto@dev
1 ssh
4 ssh dev
(eval):cd:1: too many arguments
ssh-connect
is not working for zsh
environment with extended_history
flag enabled, because it's changing $HISTFILE
format. From the docs:
EXTENDED_HISTORY
Save each commandβs beginning timestamp (in seconds since the epoch) and the duration (in seconds) to the history file. The format of this prefixed data is:: <beginning time>:<elapsed seconds>;<command>
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.