Re: applescript shell script SCP?
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