i dont understand everything i need to enter into the terminal. especially the "/path/to/dir/or/file" and the "/path/to/home" portions.
Assuming you're talking about the command:
scp -P 31415 -r /path/to/file/or/dir username@dynamic.DNS.name:/path/at/home/
It helps if you break down the components:
• scp
• -P 31415
• -r
• /path/to/file/or/dir
• username@dynamic.dns.name:/path/at/home
The first component,
scp is simply the command you're executing.
The second component,
-P 31415 is a switch to
scp telling it to use the port number 31415 instead of the default port 22. You may or may not need to do this depending on how the remote network is setup (some ISPs block port 22 so people run the server on a non-standard port to get around the block)
The third component,
-r tells scp to run recursively - that is, if the source file is a directory, copy that directory and all subdirectories to the target. Without this switch scp would only copy the specified item. This switch may or may not be needed depending on whether you're copying a single file or an entire directory.
The last two switches is where all the magic happens. They are the
source and the
destination specifiers. It's important to realize that scp can either copy files from your local machine to the remote server, or copy files from the remote server down to your machine, so the order of these two is important - if the first item is local and the second is remote then it uploads that file to the server and if the first item is remote and the second is local it downloads the file from the server.
In this case the command is uploading a local file (/path/to/file/or/dir) up to the server.
When you specify the server (either as a source or target) you use the form:
username@host:/path/to/file
The 'username@' part is optional if your account name on the remote server is the same as your login on your local machine (scp will use that username by default), but if your account name on the remote system is different then you specify it here.
The 'host:' part is the hostname or IP address of the server to connect to
The /path/to/file is the path specifier on the remote machine - either the path of the file to download if you're downloading, or the location of where you want the file you're uploading to go if you're uploading.
Therefore, the command:
scp -P 31415 -r /path/to/file/or/dir username@dynamic.DNS.name:/path/at/home/
Can be interpreted as:
"Copy the entire contents of the directory /path/to/file/or/dir on my machine to the server running on port 31415 at 'dynamic.DNS.name'. Log in as user 'username' on that server and store the uploaded item(s) at /path/to/home/ on the remote machine."
also, not sure about the discussion regarding mac account passwords. is that the password i have on my mac? the one i have to enter when i install apps? or is that a password i assign to my server for login? just not sure.
The password you need is your account's password on the
remote machine. This has no bearing on any password you have on your local machine (unless, for some reason, you have them set the same, but then it's just coincidence).