| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Not sure if this answers the question. I assume the problem is that he expects the script to be able to interact and provide a password. This can be got around by setting up ssh to use an authentication key with no password. This is done initially by logging in as the user who will run the script, run ssh -t rsa, hit enter three times (default location ~/.ssh/id_rsa.pub), no passphrase. Then use scp to copy id_rsa.pub to the remote machine and do cat >> id_rsa.pub >> ~/remote_user_account/.ssh/authorized keys. This only needs to be done once for each remote host. If you need to run the script as root on the remote machine, you can do this for the root user, though this is probably not recommended. Then your script just needs to say ssh remote_user@remote_IP and you will be immediately connected without having to supply a password - only that user, from that IP, can log in this way - the authentication key is very specific. Jim Weisbin human 138 5th avenue. 3rd floor, nyc, ny 10011 telephone 212 352 0211 facsimile 212 352 0210 |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.