If you can:
$ ssh remotebox.sld.tld -p5699
then you should be able to copy a file from your local machine to the remote machine by:
scp -P5699 file.txt remotebox.sld.tld:file.txt
and you should be able to copy a file from your remote machine to your local machine by:
scp -P5699 remotebox.sld.tld:file.txt .
Things to note are:
- You are copying the file or logging in as the same username on both systems and if not, then append remotebox.sld.tld with "joeuser@" (if your remote username is 'joeuser'.
- You want to copy from your current working directory to the user's home directory (~/) on the remote box or from the home directory on the remotebox to your current directory on your local machine (.).
If the username is different on the remote machine from what the username is that you are logged in as on the local machine, then:
scp -P5699 file.txt firstname.lastname@example.org:/home/joeuser/stuff/file.txt
NOTE: In that last example, there must be a ~joeuser/stuff directory or the command will fail.
to copy from the remote box to the current working directory on your local machine:
scp -P5699 email@example.com:/home/joeuser/stuff/file.txt .
I hope that helps