Shawn, I sent you an e-mail yesterday to your address. I haven't heard back from you yet about the problem we are having with Telnet and SSH server events on Mac OS X running FileMaker Pro Unlimited. Let me know if you received my e-mail with the error message and how to fix the problem as soon as possible. Thank you. -Tim Carder
Yeah, it was being worked on... I just went through it myself just now though. I can't really see a reason you would be getting that error. The SSH event is compiled down to a very simple AppleScript like so: do shell script "ssh -l ssh_username ip.address ./DispatcherII.pl action=Chpwd login=users_login pass=users_password" Code (markup): The only thing I can think of is to check if you have any carriage returns in your event setup. That might throw the AppleScript off somehow.
No carriage returns in the server event command, just spaces. SSH service is not enabled on Mac OS X but it runs when you issue the command manually from a prompt. No firewall issues as we can SSH and telnet into the server that the command is being passwed to. Any ideas or work-arounds. We really need this working before the weekend.
If you copy the code above in the sample AppleScript, and paste it into Script Editor, does it compile for you?
This SSH command does not specify a password anywhere. We tried running the command (everything within quotes) from command line on the Mac and it asked us for the password. Once we type the password, the command works. Do you think the trouble could be that the password is not being sent to the server via SSH? Are you relying on SSH keys to authenticate instead of username/password? I sent you the wrong command. We do not have this service set up to change passwords so we are not having trouble with that command. The correct command is: "./DispatcherII-p1.pl action=Create login=<Login> pass=<Pass> firstname=<FName> lastname=<LName> createtype=dialin". I tested the script in Script Editor and it didn't compile. It gave that same "identifier cannot go after this identifier" error and highlighted "do shell" from the script, probably meaning that the "script" identifier cannot come after the "do shell" identifier. I am running Mac OS 10.1.x and AppleScript 1.7. -Tim
Just did a little research and the AppleScript function was introduced with AppleScript 1.8: http://developer.apple.com/technotes/tn2002/tn2065.html Can you double check what version you have on that machine? It might be as simple as updating your AppleScript version.
How can I download AppleScript from Apple's website? Is the AppleScript update I need part of AppleScript Studio? I read that I have to be a developer to download XCode, which contains AppleScript Studio. I am running Mac OS 10.3 here in the office too, with AppleScript 2.0. What files do I need to copy to the server upstairs (running 10.1.x) to update AppleScript? -Tim
I don't think you need AppleScript Studio. I've never manually tried to install AppleScript though, so I'm not sure what files it consists of. My guess is it would be something in the Library folder. But I would first check Apple's site to see if they have a stand-alone updater for AppleScript. That would be easier.
I got AppleScript updated and am not getting that "identifier" error anymore. Now I am getting a new error when running SSH server events: "permission denied (publickey, password, keyboard-" The rest of the error does not fit in the alert window. This happens whenever I do any SSH server events for any of the servers we use. I can SSH into these servers from command prompt, and I get this error even after saving the authentication key on the Mac that is created between the two servers. Thanks for your help so far. Any ideas about this new error? -Tim Carder
This is the error that shows in the server log: Jan 7 17:27:20 perry1 sshd[26936]: error: PAM: Authentication failure Jan 7 17:27:20 perry1 last message repeated 2 times This server is on the other end of the SSH connection from the Mac. This SSH command does not specify a password anywhere. We tried running the command (everything within quotes) from command line on the Mac and it asked us for the password. Once we type the password, the command works. Do you think the trouble could be that the password is not being sent to the server via SSH? Are you relying on SSH keys to authenticate instead of username/password?
You would need to use key authentication on the Macs because the ssh command from the shell does not accept a password.
How do I set up or configure SSH key authentication on the Mac? I already have a key saved for each server to which it needs to connect via SSH. We are running Mac OS 10.1.5, FileMaker Pro 5.5 Unlimited, and Optigold 3.3.4. Please let me know if you need more information. -Tim
man ssh-keygen from the shell should have everything you need (where it goes, how to create it, etc.)