I've used the scp (secure copy) command from a console window a few times, to download files from a remote Linux system. It would ask for the password for the remote system as it is supposed to.
But when I tried to upload a file, the command responds with a ">" prompt and echoes anything typed; a CR just gets another prompt. Only way to quit is control-c, and nothing is transferred.
The command used was scp -P 22 localfilename user@host:/full/path/to/dest/directory/.
I also tried using a full path (from the pwd command) with the local filename.
Adding -v (verbose) to the command does not get any more output.
I tried looking for "SCP interactive mode" but did not find anything.
What is it doing and what am I doing wrong?