What is method I can write custom data at Job(While running the pipeline) which has to append into file cloned at server through SSH.Then it should proceed for next execution instruction

I am trying to make a case where once job has started it has to stop and take inputs from the user and print/copy into the file one of the git repo. which has already cloned on the remote server where its got cloned. Reason to make this to give automated platform the team who doesnt know basic ABC of the gitlab.