Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Another way to create quick-access SSH shortcuts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another way to create quick-access SSH shortcuts
Authored by: joose on Oct 16, '06 10:20:10AM

Here is one idea, read hosts from config-file.

Here is example entry from ~/.ssh/config:

host gw
hostname 192.168.11.1
user notmyname
Compression no
ForwardX11 no

and now: "open ssh://gw/" opens connection to 192.168.11.1 with username notmyname and using nocompression and no x11 forwarding. Several other options also exists. ProxyCommand is one of the ones I like to get pass the firewall.

here is a patch from original file:


30c30
< $host_list = "$home/.ssh/config";
---
> $host_list = "$home/.hosts";
55,57c55,58
<       $hostA=explode(" ", $host);
<       if ($hostA[0] != "hostname") {
<               continue;
---
>       make_term( $host );
>       // root access .term file
>       if ( $create_root_terms ) {
>               make_term( $host, "root" );
59d59
<       make_term( $hostA[1] );



[ Reply to This | # ]
Another way to create quick-access SSH shortcuts
Authored by: joose on Oct 16, '06 10:21:50AM

of course that one line should be != "host" and not != "hostname"



[ Reply to This | # ]