Hi Amy,
What type of system is the file located on, a windows or Linux system? Are you trying to copy the file from windows to linux or from linux to linux?
SSH is not what you need to copy the file over, you will need to use SCP. If you are using linux to linux then the command would look like this:
scp filename <useronremotebox>@<ipaddressofmachinereceivingfile>:<pathtocopyto>
This is how it would look using a file named 'file.sh' and using the root user on the remote machine and putting the file into /root.
scp file.sh root@192.168.1.1:/root/
If you are using a windows machine to transfer the file over to the linux machine you will want to download 'winscp' and then you can drag and drop the file into the linux system.
As for the script, you don't need to copy and paste it into the command line of the linux box. You want to transfer the script over to the linux box and then run it like this:
Using our ficticious file name of 'file.sh' at the command line it would look like this:
[root@comp ~]./file.sh
Hope that helps,
Jon