Applescript shell scripts & being prompted for password

Hi Everyone,

I have a way to authorize client computers to allow a server to send it music files… here is a view from the terminal:

“musics-mac-mini:~/.ssh music$ scp authorized_keys2 music@
The authenticity of host ‘ (’ can’t be established.
RSA key fingerprint is 2a:64:9b:74:4f:39:ec:0e:b6:83:92:af:b9:85:35:76.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘’ (RSA) to the list of known hosts.
authorized_keys2 100% 617 0.6KB/s 00:00”

Works great BUT I need an applescript to do it for me to incorporate into an xcode project… so i have:

on «event coVScliI» theObject
set remoteHostByIP to text returned of («event panSdlog» "Please enter IP of Client:" given «class btns»:{"Cancel", "Connect"}, «class dflt»:"Connect", «class dtxt»:"") as Unicode text

do shell script "cd ~ ; cd .ssh ; scp authorized_keys2 music@" & remoteHostByIP & ":~/.ssh/"

end «event coVScliI»

but or course it wont allow me to input a password (which is always the same) or to type “yes” which is what i always type… I have about 30 clients i need to setup and an applescript would be amazing. How do i either tell it to show me the terminal while it’s running the script so that i can manually do it, or is there a way to automate the “yes” command… any help would be great… thanks in advance :slight_smile: