terminal - SCP command to move directories from local machine to server -


i using macbook air terminal (my local machine) transfer on directory large number of images onto server. images located 2 subdirectores called "folder1" , "folder2" under /users/viv/images/data. want copy contents of directory on server can ssh into. ssh using command ssh udacity@54.91.119.34 question how copy contents of local machine onto server, tried using following command:

scp -r /users/viv/images/data udacity@54.91.119.34 

but ends creating new directory called udacity$54.91.119.34 , copying contents of data directory onto local machine please adice on how should proceed data can copied onto server. in advance

you need add colon @ end, followed destination directory (leave blank home directory of user):

scp -r /users/viv/images/data udacity@54.91.119.34: 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -