Extended "Open Terminal Here" Finder button to detect ExpanDrive volumes and ssh to the remote host
The existing Open Terminal Here script by Marc Liyanage [http://www.entropy.ch/software/apples...] is great.
It would be even more awesome if there were an optional mode to detect if the given path were on an ExpanDrive-mounted (SFTP) volume and open the terminal with an SSH session to the path on the remote host.
I believe this would require either via an extended AppleScript dictionary or new commands in the expan shell tool. It would specifically require the ability to:
It would be even more awesome if there were an optional mode to detect if the given path were on an ExpanDrive-mounted (SFTP) volume and open the terminal with an SSH session to the path on the remote host.
I believe this would require either via an extended AppleScript dictionary or new commands in the expan shell tool. It would specifically require the ability to:
- Query what drive (if any) the given path is on
- Query what the remote path corresponds to the local path
- Query for enough information to get the saved authentication credentials. This would either be a flag saying that it uses key auth from .ssh and therefore requires no additional information, or which Keychain item stores the actual password. Command-line Keychain access could then silently suck-out the actual password during script execution.
2
people like this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
-
Inappropriate?this is a fantastic idea. thanks JRK.
-
Inappropriate?With the exception of the shared credentials, I modified the original OpenTerminalHere to do this. It's pretty crude, and probably doesn't work in every case, but it works for all my drives and might be , and with shared-key passwordless login, it's reasonably convenient.
Just get the enhanced script here:
http://minrk.net/scripts/expandrivenO...
and replace the main.scpt in OpenTerminalHere.app:Contents:Resources:Scripts/
Then you will get ssh sessions if the file exists on an ExpanDrive sftp mount.
The only additions I made are to check if it's an sftp mount, and if it is change the 'cmd' that gets passed to Terminal, so the compatibility of all of the 'Tab instead of Window' or meta-key behavior switch modifications should not be affected.
Of course, with this it's not optional, but you could easily put the same modifications in the enhanced OTH from http://jo.irisson.free.fr/?p=59, and use ctrl for ssh.
I’m happy
-
Inappropriate?Nevermind, I did that part myself, it was easier than I thought:
http://minrk.net/scripts/OpenTerminal...
I added ctrl for ssh, and added shift to the obj-c so you have all 4 meta keys available if you want to change options by editing Application.scpt (which is not locked to run-only).
options:
New Window - opt - default off
Use Tab - cmd - default on
Use SSH on ExpanDrive - ctrl - default off
I’m happy
Loading Profile...


EMPLOYEE
EMPLOYEE
