Hi Sam,
The examples you showed bring up the PuTTY console already logged to the VPS. I should then manually type a command to send the desired file to the VPS. What I want is a way to automatically send a file from my PC to the VPS, preferably without having to open the console, just in a single line if at all possible. My plan is to include such line inside my QB64 program.
I already have a QB64 program that regularly downloads a file that contains progress and status of an ongoing task being performed in a VPS (it's written in PHP and JS, not by me though). Sometimes this task freezes - I know because of time stamp printed on that status file - and my plan is to send a new file to the VPS, therefore allowing the task to continue. The program will have to be able to delete the remote file, then upload a substitute, without user intervention.