I’m trying to copy my .profile, .rvm and .ssh folders/files to a new computer and keep getting a “not a regular file” response. I know how to use the cp and ssh commands but I’m not sure how to use them in order to transfer files from one computer to another.
Any help would be great, thanks!
You can do this with the
scpcommand, which uses the ssh protocol to copy files across machines. It extends the syntax ofcpto allow references to other systems:Copy something from this machine to some other machine:
Copy something from another machine to this machine:
Copy with a port number specified: