I have some n number of files in a directory on my unix system. Is there a way to write a shellscript that will transfer all those files via scp to a specified remote system
Try lftp
lftp -u $user,$pass sftp://$host << --EOF-- cd $directory put $srcfile quit --EOF--