Re: Automation Sans Window Server
Re: Automation Sans Window Server
- Subject: Re: Automation Sans Window Server
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 16 Apr 2008 05:33:38 -0400
Fire up Terminal, and you have a command line shell on your local
host. Type "ssh someOtherMac", supply the password, and now your
Terminal is effectively running on the remote Mac. You can do
anything that you can do in a local Terminal, except that anything
that requires the window server won't work unless you left yourself
logged in on the console of the other Mac, too.
That's basic ssh. (Note that if your short user name is different on
the two Macs, you have to type "ssh otherUsername@someOtherMac"
instead of just "ssh someOtherMac".)
You don't have to do any of the key generation stuff - that's a
security/convenience feature that let's you avoid typing the password
everytime. It is especially convenient for automation, though, which
frequently uses quick one-offs of the form "ssh hostname command",
which connects to the remote machine just long enough to run the given
command and then exits.
On 4/15/08, Philip Aker <email@hidden> wrote:
> On 08-04-15, at 18:28, Mark J. Reed wrote:
>
> > On Tue, Apr 15, 2008 at 9:12 PM, Philip Aker <email@hidden>
> > wrote:
> >> Just curious, does osascript work via ssh?
>
> > As long as you're ssh'ed in as the same user who's logged into the
> > console, it works great. Otherwise, some things work, others don't.
>
> May be time for me to learn how to ssh seeing as I've got several OS X
> machines. This is my understanding:
>
> 1. Generate some tag files with ssh-keygen.
> 2. Put one of them in my home folder.
> 3. Transfer another kind to the home folder of the remote machines.
> 4. Thereafter I may ssh to the remote and then start using some
> commands (of which variety I'm not sure).
>
> Any corrections for the above?
>
> Can I do the same from single user mode?
>
> What's a standard call for ssh-keygen?
>
> Philip Aker
> echo email@hidden@nl | tr a-z@. p-za-o.@
>
> Sent from my SE/30
>
>
--
Sent from Gmail for mobile | mobile.google.com
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden