jetbug123 / ulauncher-ssh Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
First of all, great job with this extension :)
I define my ssh connections in the file ~/.ssh/config
as you can see below.
## OpenMediavault ##
Host nas
HostName 192.168.1.25
User tzinm
IdentityFile ~/.ssh/id_rsa.pub
It works great, it appears in Ulancher and I can start a ssh session with nas name. The "problem" is that I have the ssh sessions duplicate, because it takes the config file connections and the known_hosts file connections.
Is there any way to solve this?
Thanks!
It took me a few minutes and a look at the source code to figure out how to add connections to the list that this extension displays via uLauncher (initially I was expecting this extension will have some sort of editor to add/modify/remove connections so I was lost).
I suggest adding something like the following to the README.md file of this extension repo to save people some search time and the developer some time answering basic questions
This extension builds the connection list automatically by extracting "Host" entries in the current user's ~/.ssh/config file.
For examples and details on how to add entries to the ssh config file, see for instance this link
This is a typical host entry in .ssh/config:
## Home nas server ##
Host nas
HostName 192.168.1.100
User root
If you have configured passwordless ssh login for this host/server, clicking on the 'nas' host entry in ulauncher will open a terminal and log you in the server automatically.
Ulauncher just released a new version and it broke this extension.
See here:
https://mailchi.mp/fbb4b54c426a/ulauncher-is-migrating-to-python-3-changes-to-extension-api-and-more
And here:
http://docs.ulauncher.io/en/latest/extensions/migration.html
Would you accept PR for this?
Here's a patch gist: https://gist.github.com/kkreso/fab5066ac7f9f27707f744c2a3cdaac8
ulauncher-ssh
works great but fails for hosts which have multiple names for Host
:
Host foo.org bar.net
Hostname 1.2.3.4
on the cl, i can use:
ssh foo.org
or
ssh bar.net
Ulauncher fails to connect to such a host because it doesn't consider this as two hosts.
I have everything setup in .ssh. I'm actually using the config setting for the CLI. What is needed to initiate it in Ulauncher. I'm on Linux Mint 19 and using Terminator
Please try, it works as a command from a shell:
urxvt -e sh -c 'ssh mymachine'
Hi all. I try the extension, and i notice that instead of getting the Host variable from .ssh/config file, only to show which host you are about to connect, it use the same variable as a prefix for ssh connection
And also it does not show you the what is written on Host when you type ssh on Ulauncher.
Example:
For this in the .ssh/config file
Host TestingHost
HostName testing.com
User testadmin
when you write ssh in the ulauncher and select it try to connect to testadmin@TestingHost
If you change config file into
Host testing.com
HostName testing.com
User testadmin
it works as a charm :)
Could you please fix it?
So i can write meaningful things on the Host variable so i can search it by words not by nubmers ( if HostName ) is an a IP
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.