Public ssh key not working with launchd

I have a simple shell script that has only a couple lines:
rm /Volumes/drive/folder/*
scp -r [email protected]:/Volumes/drive/folder/
the "admin_user" account has an ssh key to be able to connect to the remote server without having to enter in a password.
if i run this script manually, as "admin_user", it works.
i need this to run via launchd at a set time every day, which i've successfully configured, with the UserName key. the script does run via launchd and it successfully deletes the files (the first line of the script).
it is failing, when run via launchd, with the second line. the files are never copied.
the log shows that the ssh key isn't working:
12/19/08 10:43:00 AM edu.example.xxxxxxxml[1386] Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
i'm not sure what i need to do differently as far as configuring the keys.
many thanks,
chris

here is the verbose log... i am not an ssh or sshd_config expert so any guidance is appreciated!:
{quote}
admin_user12/23/08 10:34:00 AM edu.example.deptxxxml[26285] Agent pid 26287
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] Enter passphrase for /Users/adminuser/.ssh/idrsa:
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] Executing: program /usr/bin/ssh host testserver.example.edu, user admin_user, command scp -v -r -f /Volumes/drive/inc/data/dept/
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Reading configuration data /etc/ssh_config
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Connecting to testserver.example.edu [1xx.xx.117.3] port 22.
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Connection established.
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: identity file /Users/admin_user/.ssh/identity type -1
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: identity file /Users/adminuser/.ssh/idrsa type 1
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: identity file /Users/adminuser/.ssh/iddsa type -1
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: match: OpenSSH_4.7 pat OpenSSH*
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Enabling compatibility mode for protocol 2.0
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Local version string SSH-2.0-OpenSSH_5.1
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: SSH2MSGKEXINIT sent
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: SSH2MSGKEXINIT received
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: kex: server->client aes128-cbc hmac-md5 none
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: kex: client->server aes128-cbc hmac-md5 none
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: SSH2MSG_KEX_DH_GEXREQUEST(1024<1024<8192) sent
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: expecting SSH2MSG_KEX_DH_GEXGROUP
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: SSH2MSG_KEX_DH_GEXINIT sent
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: expecting SSH2MSG_KEX_DH_GEXREPLY
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Host 'testserver.example.edu' is known and matches the RSA host key.
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Found key in /Users/adminuser/.ssh/knownhosts:1
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: sshrsaverify: signature correct
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: SSH2MSGNEWKEYS sent
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: expecting SSH2MSGNEWKEYS
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: SSH2MSGNEWKEYS received
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: SSH2MSG_SERVICEREQUEST sent
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: SSH2MSG_SERVICEACCEPT received
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Next authentication method: gssapi-keyex
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: No valid Key exchange context
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Next authentication method: gssapi-with-mic
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Unspecified GSS failure. Minor code may provide more information
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] No credentials cache found
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Unspecified GSS failure. Minor code may provide more information
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] No credentials cache found
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Unspecified GSS failure. Minor code may provide more information
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Next authentication method: publickey
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Trying private key: /Users/admin_user/.ssh/identity
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Offering public key: /Users/adminuser/.ssh/idrsa
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: Server accepts key: pkalg ssh-rsa blen 277
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: PEMreadPrivateKey failed
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: read PEM private key done: type <unknown>
12/23/08 10:34:00 AM edu.example.deptxxxml[26285] debug1: read_passphrase: can't open /dev/tty: Device not configured
{quote}

Similar Messages

  • Using shift key not working with bluetooth keyboard

    Am I missing something here? Or does the shift key not work with the iphone using a bluetooth keyboard?  I'm using the logitech K810 for reference on iphone 6 iOS 8.1

    The shift key works just fine on my Bluetooth keyboard.  So I would imagine this is an issue with your keyboard.

  • Brightness and volume control keys not working with windows 7?

    brightness, volume control and some other keys keys are not working with windows 7 with macbook pro retina. Can I fix it?

    Welcome to the Apple Support Communities
    Have you installed Boot Camp drivers? You need them to make your computer work properly on Windows, and to use your function keys as Play or Pause, volume and brightness keys.
    To install them, follow these steps:
    1. Press the X key while your Mac is starting to start into OS X.
    2. Open Boot Camp Assistant and tick only the option to download Windows support software.
    3. Windows support software will be downloaded and Boot Camp Assistant will ask you to burn it into a DVD or USB drive, so do it.
    4. Start into Windows, insert the DVD or USB drive and install Boot Camp drivers. Your Mac and your volume and brightness keys will be working after installing the drivers

  • Right shift key not working with middle row of letters

    The right shift key on my Macbook Pro does not work with the middle row of letters. It works with all other letters and numbers, just not A-L. Nothing out of the ordinary happened, it just stopped capitalizing

    Try resetting your SMC and PRAM.
    Resetting the System Management Controller >>
    If that does not work, test it using an external keyboard.
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG Podcast
    Macsimum News Associate Editor  Creator of 'Mac611 - Mobile Mac Support'

  • Brightness key not working with Dell monitor

    Should my new wireless keyboard brightness keys be working with my Dell monitor?

    Hello I managed to solve my problem of brightness key not working by Installing the Intel HD Graphic 3000 Driver from Intel official site. So if your Graphic card is Intel HD 3000 Graphic and your system is 64 Bit OS then you can follow the below link to download it and install.....https://downloadcenter.intel.com/download/24971/Intel-HD-Graphics-Driver-for-Windows-7-8-64-bit Note :- This Graphic driver only support the following intel Processor And If Your Are still running the built in intel graphic card, then only download it and install at you own risk.Supports Intel(R) HD graphics on:            2nd generation Intel(R) Core(TM) i3 processor            2nd generation Intel(R) Core(TM) i5 processor            2nd generation Intel(R) Core(TM) i5 vPro(TM) processor            2nd generation Intel(R) Core(TM) i7 processor            2nd generation Intel(R) Core(TM) i7 vPro(TM) processor            Intel(R) Pentium(R) Processor  900/B900/G600/G800 Series            Intel(R) Celeron(R) Processor 700/800/B700/B800/G400/G500 Series

  • Volume and brightness keys not working with new keyboard on imac

    I just purchased a new wired keyboard for imac and brightness and volume control keys not working . i have tried adjusting keyboard settings. I have software version 10.5.8. Do I need to upgrade software. Thank you for any help.

    Do you have "Automatically Adjust Brightness" check box ticked in System Preferences > Displays > Display ? If so, you can't manually adjust brightness.

  • Esc key not working with JDialog

    Hi,
    We are facing a KeyListening problem with JDialog. We developed an application using JRE 1.4.0. When we migrate from 1.4.0 to 1.4.2.The Esc keys(All keys) associated with the JDialog is not listening. Following is code piece is showing the Esc key. The same piece of code is working with 1.4.0 and with lesser versions. U'r help will be appriciated.
    import java.awt.Container;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
    import javax.swing.JButton;
    import javax.swing.JDialog;
    import javax.swing.JPanel;
    public class EscDialog extends JDialog implements KeyListener {
         static EscDialog ed = new EscDialog();
         public static void main(String[] args) {
              ed.setSize(200, 300);
              ed.addKeyListener(ed);
              JButton jb = new JButton("Test");
              JPanel jp = new JPanel();
              jp.add(jb);
              Container cp = ed.getContentPane();
              cp.add(jp);
              ed.show();
         public void keyPressed(KeyEvent anEvent) {
              if (anEvent.getKeyCode() == KeyEvent.VK_ESCAPE)
                   System.exit(0);
         public void keyTyped(KeyEvent anEvent) {
         public void keyReleased(KeyEvent anEvent) {
    }

    An example:import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test extends JDialog {
        public Test () {
            getContentPane ().setLayout (new FlowLayout ());
            getContentPane ().add (new JLabel ("Press escape to exit..."));
            getRootPane ().getInputMap ().put (KeyStroke.getKeyStroke (KeyEvent.VK_ESCAPE, 0), "dispose");
            getRootPane ().getActionMap ().put ("dispose", new AbstractAction () {
                public void actionPerformed (ActionEvent event) {
                    dispose ();
            pack ();
            setDefaultCloseOperation (DO_NOTHING_ON_CLOSE);
            setLocationRelativeTo (null);
            setTitle ("Test");
            setVisible (true);
        public static void main (String[] parameters) {
            new Test ();
    }Kind regards,
      Levi

  • Shift key not working with some keys

    I am using a MAC Pro with two hard drives.  One runs Leopard and the other MS windows.  while in windows, the birghtness key illuminated (f2 key) and suddenly the shift 2, w, s, x keys quit working.  I decided to reboot and while holding the option key to boot into windows, the system did not recognize the option key and booted me into Leopard.  so now I notice the shift 2, w, s, x, and option key are not working.  Any suggestions?  Also, the brightness icon is still lit up on my screen and I am not able to make it go away or even adjust...

    I'm having this same exact issue. Anyone know of a fix? Is it possible junk in the keyboard?
    I tested my keys using the keyboard viewer, and when I hit function it recognizes it, but it doesn't when it is loading.

  • Eject key not working with MBA Superdrive

    For MBA owners with MBA Superdrive, could you please let me know if the Eject key is working? I just bought a MBA Superdrive but the Eject key on the keyboard is not ejecting disc. When i press the Eject key, i don't see the gray Eject icon on the screen, unlike all other function keys (for example, volume control, keyboard backlight control and screen brightness control). I can ctrl-click (or right-click) on the disc and select "Eject" to eject disc. If i do a ctrl-Eject, i can get the "Are you sure you want to shut down your computer now" window to show up so the Eject key does not appear to have any physical or electrical issue. I can also boot into Boot Camp (Windows 7) and the Eject key works perfectly.
    I have installed and uninstalled Virtual Box and Parallels so i am not sure if my problem is related to that.
    Apple's tech support recommendation is to do an archive install, which in theory will keep all my personal data but create a new Systems folder. But i would like to try something less drastic before going that route.

    Thanks. I not only did an "archive install" of Snow Leopard, i also did a erase install. But the Eject key is still not working like it's supposed to. I think i am going to try clearing the PRAM next.

  • Apple wired keyboard - certain keys not working with shift

    I treated myself to a new Apple wired keyboard MB110B/A for my mac mini.
    My previous keyboard worked fine, however the new keyboard causes the computer to enter the Hardware Test mode every time the computer is restarted. The computer only starts normally without the keyboard connected (or with my old keyboard connected).
    Once the computer has started, if I plug the new keyboard in, it appears to work normally with the following exceptions. The following keys do not register when the "shift" key is pressed: 2, w, s, x. This fault does not occur with my old keyboard.
    As these keys are in a line, I think there may be a wiring fault inside the keyboard. If so, would this explain the computer entering Hardware Test mode every time it is started with the keyboard connected?
    Thanks in advance.

    Definitely sounds like a hardware fault in the keyboard to me. I assume it's the same whichever USB port it's connected to? (and if you plug it into another Mac, too)?
    Of course, as that keyboard is glued together in final assembly, it's completely unrepairable.
    If it's a reproducible fault (and new anyway): take/send it back for replacement. You shouldn't have any trouble with Apple arguing.

  • Keyboard: audio and Brightness control keys not working with or without fn

    The Keys for controling Audio and Brightness (F1-F5) do not work.
    Also combined with pressing the "fn" key the keys do not work.
    So i only control audio with the remote control or the slider in the menubar.
    Making a reboot with deleting pram didn't help.
    I'm running the up to date version of leopard on a macbook pro (core2duo).
    I also searched in the forum for this problem.
    I oten read about "sytem control"-"keyboard and mouse"-"keyboard" and the F1, F2, etc. to use as...
    but switching this button on or off doesn't change anything.

    problem solved:
    the couse was the software update 1.1 for macbook pro, because there i had the problem like in this thread: http://discussions.apple.com/thread.jspa?messageID=6142512&#6142512
    and did the solution like that, but there i maybe made some mistakes with renaming and copying, so i rinstalled the update and renamed it a copied to plugins, and now all works as it should.
    thanks for help

  • F7 & F8 shortcut keys not working with Apple's new keyboard

    Using a Mac with Macs newish low profile keyboard.
    Nothing happens when I use these keys.
    The F5 & F6 keys work just fine.
    Is there something I'm doing wrong?
    Or is the new Apple keyboard not compatible with these shortcuts?
    What to do?
    plmk,
    thanks.

    You can go to the System Preferences --> Keyboard and Mouse and check "Use F1, F2 etc keys..." and F7 and F8 will work.
    But I don't know where the function key is on those new keyboards.

  • NB200 Windows 7 Fn key not working with ESC and F1 to F8 keys

    I recently bought a Toshiba NB200-136 and everything worked fine.
    Flash cards on top/bottom of the screen work with Space, ESC and F1 to F8 keys, the rest of function buttons work without showing the cards. Lately the cards stopped showing and I cannot use the Fn + Space, ESC, F1-F8 keys (there's just no reaction), though the rest of buttons work with Fn and the LED is always lit when the Fn is pressed.
    I reset Flash Cards, checked and changed their settings few times and they work only if I choose 'Allow the mouse to bring up the cards' option. Even then they don't appear when I press Fn and the functions work only when I click one of the cards.
    The problem appeared after (though I'm not sure if immediately) such situation:
    I clicked Start -> Shut down and closed the lid. When I opened it the next morning I saw an empty list of programs that wouldn't shut down (it happens quite often, but it's off top). I clicked 'Cancel' or 'Force shut down' but it didn't work so I pressed the Power Button for 5 secs to turn the computer off. I noticed the Fn problem after turning it on and it didn't disappear after resets.
    I think the problem appeared before but disappeared after reset so I ignored it.
    I'll be thankful for your help.

    Any time that you force Windows to stop instead of letting it shut down normally (sometimes you have to shut it off), you may have lost clusters of data that interfere with the proper operation of Windows. So I suggest you start up and run scandisk and make sure you check the box for fixing problems. The other box doesn't need to be checked unless you suspect bad sectors on the hard drive and it takes a long time so I recommend only checking the one box for finding and fixing errors.
    Let us know if this worked and the problem is fixed.
    Good luck.

  • Satellite Pro A10 - some keys not working with new keyboard

    Hi all
    I hope some1 can help with this
    i have a Satellite Pro A10. The prob i have is a.b.n.and enter keys are not working and its a new keyboard
    i fitted into my other A10 and all keys work so keyboard is fine.
    All works ok with usb keyboard. Had motherboard out all seems ok.
    Any help plz
    chris....
    Message was edited by: widgy

    Hi
    Why do you think that the motherboard is ok?
    Maybe its a keyboard controller issue
    Did you check if the cable was connected properly?
    In my opinion if you are 100% sure that the keyboard is ok then the issue must be related to the motherboard because there is no other part which is placed between the keyboard and mobo.
    Bye

  • Hot Keys Not Working With Yosemite

    I recently updated to Yosemite from Snow Leopard and have been having some issues with my hot keys. I'm working in CS6 and have updated the latest version of Photoshop from the Adobe Manager.
    The hot keys do work sometimes, but then they stop. Is anyone else have this issue, or is there an update in the works?
    It's such a slower work process to have to go through the menus to find what I want, mainly Command Z.

    same issue- trying to find a solution...

Maybe you are looking for

  • Date Wise Production Report

    Dear All, I want following column wise Production Report (From Production Order) WARE HOUSE  UOM  COMPLETED Date(1,2,3,4,5,6,......31 ) Completed Qty. total qty Basically i want Pivot (dynamic) by date SELECT T0.[Warehouse], T0.[Uom], T0.[DueDate], T

  • Hello my iphone dont charge and it be not conect at itunes what can i do

    hey world i have an problem with my iphone 3g it dont loade and i dont see it at itunes soory for my bad english but im from germany but what can i do for my problem with my iphone

  • Does Adobe Export convert Excel to pdf. ?

    Yes or No ?

  • [Solved] Can't find usbnet module in stock kernel

    Hi, I was trying to get USB tethering to work, and found that I don't have the "usbnet" module. Pkgfile tells me that linux and linux-lts both provide usbnet, but I can't find the module (in /usr/lib/modules/...) at all (I'm on the 3.6.10-1 kernel, j

  • How to create encrypted disk image?

    In Disk Utility, I select to create a new image that is password protected. I'm prompted to save and give the image a password. It never ask for the size and starts "Reading whole disk". I don't want to encrypt my entire disk. This image might only b