Handling scripts in two different servers

Hi ,

My Script work as below

1-
On server 1

execute script1.sh ,

through this script one parameter file is generated as file.txt this is to transfer on server 2

2-
After reaching on server2 other shell script script2.sh execute using parameter file file.txt

This generate file new output file file2.txt now this is to be transfer back to server1

3-
where third shell script script3.sh executes using this output file.file2.txt

My Question is

how this can be handle with using two servers ?

scp port is not enable

For that simple context, you don't necessarily need to copy files to and fro. Try

ssh user@server2 ./script2.sh <parameters >results

In script2.sh on server2, you read stdin for the parameters supplied from your local file, and all results are printed to stdout redirected to (local) results.