A Script for Remote Desktop
Wed Aug 18, 2010 · 124 words

One silly feature omission in Apple Remote Desktop is the lack of a “Open SSH connection” command. To be able to open a Terminal window with a connection to the currently selected machine. Luckily we can create this ourselves pretty easily:

tell application "Remote Desktop"
    set theIp to Internet address of selection
    set defaultUser to current user of selection
    set theUser to text returned of (display dialog "" default answer defaultUser)
    tell application "Terminal"
            do script "ssh -l " & quoted form of theUser & " " & theIp
        end tell
end tell

Save that as a script with AppleScript Editor named “Open SSH connection” under ~/Library/Scripts/Applications/Remote Desktop and now you have way to do just that straight from the menu bar.

back · essays · credits ·