decmhugh / qutty

Automatically exported from code.google.com/p/qutty
Other
0 stars 0 forks source link

Hostname Filter config #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is there any way to have authentication/config not by saved sessions but rather 
by a hostname/ip filter?

I have ~100 connections and I dont make saved sessions for all of them; it's 
currently easier to just type site1.work.com into the hostname rather than 
scrolling to find it.

Of those 100 connections, only 5 or so of them are personal, the rest are work 
servers. My username is different based on personal vs work. So ideally I can 
just set the default login username/RSA key to be the one I use for work. But 
then any random other place I need to connect to will use that username/key... 

if i could just filter all non-saved sessions with hostname *.work.com to use a 
set config, everything would be wonderful.

Original issue reported on code.google.com by nbi...@gmail.com on 25 Jun 2013 at 5:03

GoogleCodeExporter commented 9 years ago
Not sure of the exact approach to take here.

Kitty solves handling multiple sessions via 'Folders'
http://www.9bis.net/kitty/?page=Sessions%20filter&zone=en

Superputty handles it via 'Tree' of sessions.
https://code.google.com/p/superputty/wiki/Screenshots

I was also more inclined to solve via 'Tree' of sessions.
So you can have Work, Personal as tree nodes, and any number of child sessions 
for them.
When you type a hostname, depending on which tree node (work/personal) is 
selected, default settings will be used from that.

Let me know if this looks ok, or any other suggestions.

Original comment by Rajendra...@gmail.com on 26 Jun 2013 at 7:44

GoogleCodeExporter commented 9 years ago
Either one of these would work great.

I like the concept of being able to select the tree node and then fill in the 
hostname, as the hostname is really the only variable that changes from server 
to server for work.

Original comment by nbi...@gmail.com on 26 Jun 2013 at 1:40

GoogleCodeExporter commented 9 years ago
I like the tree implementation.

However I have one minor request: is there any way to have the profiles inherit 
attributes of the parent?

that way I can set groups where all "work" connections use my employee 
username, all my "personal" connections use my personal username, etc. Then all 
I'd have to do to fully configure a new connection is define a hostname, drag 
it into a folder and it's configured.

Original comment by nbi...@gmail.com on 16 Jul 2013 at 2:39

GoogleCodeExporter commented 9 years ago
In some sense the 'copy' button (in detailed settings window) does that.
Just click on an existing session (ex., Work->hostname1.domain.com) and press 
'copy'.
Now a new session 'Work->hostname1.domain.com (1)' will be created.
Click on this new session, change hostname and 'save'.

Profiles inheriting parent attributes has lot of benefits.
The problem arises when session hierarchy changes, sessions start to inherit 
attributes of new parent. This causes confusion since many attributes may 
change, and the session may no longer have desired attributes.

I hope the 'copy' button would fit your needs.
Let us know if it doesn't help. We can think through the approach to take.

Original comment by Rajendra...@gmail.com on 16 Jul 2013 at 6:51

GoogleCodeExporter commented 9 years ago
Out of curiosity, on the new hostname screen, if i input a hostname, and then 
select "session profile" "work" (which is a complete profile with no hostname 
saved), will that inherit the rsa key/login name from the session profile I 
selected?

My main thought behind this is that of the 100 or so servers I work with at 
work, they are all (supposedly) configured the same, and if I need to make a 
change to 1 profile, I'd like it propagate to all other profiles. Currently 
this works (perhaps unintentionally) when I select a server, and then select a 
"work" profile that has no hostname, it populates all the "work" settings, but 
does not empty the hostname, it leaves it for the last server I was on that had 
a host... so I can simply select a server, then select work, then connect 
(however thats a lot of clicks, and there is no easy way to do that from the 
new connection UI, unless the method i described above works)

Original comment by nbi...@gmail.com on 16 Jul 2013 at 7:00

GoogleCodeExporter commented 9 years ago
Yes. in new connection UI, settings from selected 'session profile' will be 
applied for the hostname.

Once you have opened a session this way, "hostname.domain.com    work" will 
start appearing in the hostname autocompletion dropdown, making selection easy.

Original comment by Rajendra...@gmail.com on 16 Jul 2013 at 8:24

GoogleCodeExporter commented 9 years ago
Awesome, this is basically how I connect on putty so this sounds perfect (and 
much faster). Now my only issues revolve around the crashes relating to RSA 
that seems to be preventing me from launching this way.

Original comment by nbi...@gmail.com on 16 Jul 2013 at 8:30

GoogleCodeExporter commented 9 years ago

Original comment by Rajendra...@gmail.com on 17 Jul 2013 at 7:28