SSH Arguments

I Have a script call flash which accepts a encrypted file as argument decrypts it and write output to new file.

I have to call this script via ssh from my pc , i want to know how to pass this file residing on my pc as argument to this script.

my usual way of calling the script is <./flash.sh enc_file>
how to do the same using ssh. pls help

You're probably going to have to scp the file there first, run the script against it and then, if desired, delete the file. You can script it and then call the script on your local pc. For example, you can have a script on your PC called doflash.sh that contains something like this:

#!/bin/bash
scp $1 me@host:~/tempfile
ssh me@host "/path/to/flash.sh ~/tempfile; rm -f ~/tempfile"

And then call the script with your file name:

doflash.sh enc_file