Here's are the commands I've tried (in a .sh file).
rcp $1/target/$1*SNAPSHOT.jar remote_server:~/ rsync -v $1/target/$1*SNAPSHOT.jar remote_server:~/
Both of these create a file on
? (i.e the full path is
~/?, instead of just using the same name as the original file (like
$1 is the name of the folder/jar file, I give it a single value. So for example,
I'm sure I'm just missing something simple.
Remote OS is Amazon Linux 2 (basically CentOS). My OS is WSL Ubuntu (Ubuntu running on Windows).