SSH server events problem

Discussion in 'Optigold ISP' started by cardertd, Jan 7, 2005.

  1. #1
    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
     
    cardertd, Jan 7, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    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.
     
    digitalpoint, Jan 7, 2005 IP
  3. cardertd

    cardertd Guest

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    cardertd, Jan 7, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    If you copy the code above in the sample AppleScript, and paste it into Script Editor, does it compile for you?
     
    digitalpoint, Jan 7, 2005 IP
  5. cardertd

    cardertd Guest

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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
     
    cardertd, Jan 7, 2005 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    digitalpoint, Jan 7, 2005 IP
  7. cardertd

    cardertd Guest

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    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
     
    cardertd, Jan 7, 2005 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    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.
     
    digitalpoint, Jan 7, 2005 IP
  9. cardertd

    cardertd Guest

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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
     
    cardertd, Jan 7, 2005 IP
  10. cardertd

    cardertd Guest

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    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?
     
    cardertd, Jan 7, 2005 IP
  11. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #11
    You would need to use key authentication on the Macs because the ssh command from the shell does not accept a password.
     
    digitalpoint, Jan 7, 2005 IP
  12. cardertd

    cardertd Guest

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    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
     
    cardertd, Jan 8, 2005 IP
  13. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #13
    man ssh-keygen from the shell should have everything you need (where it goes, how to create it, etc.)
     
    digitalpoint, Jan 8, 2005 IP