Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sord

macrumors 6502
Jun 16, 2004
352
0
The program does not continue because touch won't execute until SSH completes (meaning touch will run on the local computer, not the remote). You can't script like that with SSH.

If you look at 'man ssh', you will see you can pass commands at the end of your SSH command. You will want to setup your SSH keys (http://pkeck.myweb.uga.edu/ssh/) so that you can SSH without a password, then you can "ssh admin@administrators-computer.local touch key" and "ssh admin@administrators-computer.local ls -l" I believe.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.