• 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: applescript shell script SCP?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript shell script SCP?


  • Subject: Re: applescript shell script SCP?
  • From: Paul Scott <email@hidden>
  • Date: Mon, 08 Dec 2008 17:45:04 -0800


> My goal is to sftp a file to a server (curl doesn't support sftp).
> The problem is that SCP requires that the password be typed when > prompted, after the initial command. I tried throwing the password > after a semicolon to make it execute as line 2 of my shell script, but > that yeilds error:
> ssh_askpass: exec(/usr/libexex/ssh-askpass): No such file or directory
>
> set theSCPScript to "scp " & thisPath & " " & theUsername & "@" & > theServer & ":" & thePath & theFileNAME & ";" & thePassword
> do shell script theSCPScript
>
> any ideas or help would be greatlly appreciated!


If you use authorized keys, you don't need a password with scp (or ssh).
That's what I use for scp, ssh, rsync, etc.

Paul

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

 _______________________________________________
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

References: 
 >Re: applescript shell script SCP? (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: applescript shell script SCP?
  • Next by Date: Re: Distribute File to all users
  • Previous by thread: Re: applescript shell script SCP?
  • Next by thread: Re: applescript shell script SCP?
  • Index(es):
    • Date
    • Thread