• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Do shell and ssh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
<email@hidden>
http://www.humanworldwide.com


 _______________________________________________
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

  • Prev by Date: Re: (no subject)
  • Next by Date: Re: Store script as run only
  • Previous by thread: ANN:FTP Droplet Toaster 2.2.3
  • Next by thread: Mysterious Preferences File
  • Index(es):
    • Date
    • Thread