I'm on a Mac running Catalina. I have a file on a remote server that I want to do things with on my local machine; I want to do it so that I am moving from remote to local.
I looked at this post, this post, and many similar online resources and saw that I need to use my username and address, and then a filepath; what I am wondering is how I find these, and which I use? I have only seen "replace-with-your-info" templates, but not examples of what it should look like.
I am asking about this part
[email protected]:path/to/newRead.txt
, but with my information replaced with the generic info.
When I tried ifconfig, several blocks of phrases and numbers came up; which should I use (if any)? I also don't know how to find my username, nor what my path should look like (should the username be the full result of the hostname command, and the start of the path the result of printing the working directory from home (~)?)
Are there commands I can input into the command line that will give me these directly, or give me a formatted string of what my (local) specific part should look like?
I am asking for remote to local because my privileges on the remote are more limited, although I am open to hearing about similar things on that end as well.
scp
on the local machine? Depending on your local network and router it may require some configuration on your side or might not be possible to reach your local machine from the remote server. Show the output ofifconfig
in your question. The real IP addresses are important, at least the first two numbers of the IPv4 address must not be changed. Describe your local network, internet connection and connection to the remote server.sshd
program running on that server, or you don't have a shell account on that server, you won't be able to access the files there withscp
at all. Having an email/ftp/cpanel/web/sftp-accessible account on that server is not enough.