Thread: copying contents through ssh
i want copy contents of directory through ssh. problem i'm having can use cp -r terminal function, cause directory copied. want whats inside copied directory. because of way have server laid out, have copy entire directory, copy each element 1 one inside directory specified folder. tedious. so, there way can copy contents? thinking of zipping it, unzipping it, when extract, once again creates new directory, not contents inside. please!
if confusing, i'm trying do:
directory: ../random/
after scp -r:
/home/blah/blah/random/(elements inside random)
want:
/home/blah/blah/(elements inside random)
scp -r username@hostname:/path/to/random/* .
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Desktop Environments [ubuntu] copying contents through ssh
Ubuntu
Comments
Post a Comment