The SSH clients I’ve tried do weird things with the pasted code most of the times removing new lines, so I need to copy line by line, and even then it sometimes inserts line breaks where there aren’t.
Most probable what I’ll end up doing is use a regular mobile text editor and sync with git or via FTP to just copy paste the files.