• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ssh login with password script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssh login with password script


  • Subject: Re: ssh login with password script
  • From: Andrew Oliver <email@hidden>
  • Date: Sat, 22 Jan 2005 12:28:31 -0800

On 1/22/05 11:36 AM, "Graham Anderson" <email@hidden> wrote:

> If I have:
> do shell script "ssh -fN email@hidden -L 13306:127.0.0.1:3306"
>
> How can I pass a password to the script so it does not fail once logged
> in
>
> Normally, in X11, the script executes...logs in...and then asks for a
> password..then I am set...
>
> applescript is pretty cool, btw :)

There's nothing in 'do shell script' that supports interactive shell command
execution. If you need to type anything in a shell command, 'do shell
script' is not for you.

You either need to setup host keys between you and the server so that you
can log in non-interactively or (bleugh) use Terminal.app to manage the ssh
connection.

Mike Bombich's discussion on setting up rsync covers the issue of creating
host keys quite nicely: <http://www.bombich.com/mactips/rsync.html>

Andrew
:)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >ssh login with password script (From: Graham Anderson <email@hidden>)

  • Prev by Date: Do shell script question - non sudoer user
  • Next by Date: Re: Do shell script question - non sudoer user
  • Previous by thread: ssh login with password script
  • Next by thread: Content of message - Apple's Mail app
  • Index(es):
    • Date
    • Thread