Re: Do shell and ssh
Re: Do shell and ssh
- Subject: Re: Do shell and ssh
- From: James Weisbin <email@hidden>
- Date: Fri, 7 Apr 2006 09:32:48 -0400
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:
This email sent to email@hidden