Wednesday, April 24, 2024
 Popular · Latest · Hot · Upcoming
22
rated 0 times [  22] [ 0]  / answers: 1 / hits: 13414  / 3 Years ago, wed, july 21, 2021, 12:21:20

I am trying to get some files off of my school Linux account using ssh. I have got the connection to work using:



scp <school_server>: ~/folder I want ~/where I want to go.



But when it goes to transfer folder it gives me the message:



not a regular file



The file contains .java files, and I want the whole folder.


More From » ssh

 Answers
5

To recursively copy a whole directory using scp, you need to add the -r switch



scp -r remotehost:/path/to/remote/dir/ /path/to/local/dir/


[#29166] Friday, July 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nquirewha

Total Points: 256
Total Questions: 109
Total Answers: 122

Location: Namibia
Member since Mon, Feb 21, 2022
2 Years ago
;