As I have started working on deep learning algorithms, it became mandatory to use GPUs for faster computations. My laptop doesn’t have enough GPU power so I have depended on my university server. In order to run my code on server I need to have required datasets on server so that it can access the files easily and make the execution of the program easy and quick.

I am currently working on Ubuntu 14.04LTS and if you want to know more about scp command you can type man scp in your terminal to see how the command works. Here I want to demonstrate how to copy a folder from your local machine to the remote.  server I am at the folder location in which I have a folder to copy onto remote server.

It is quite simple:

     scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 … [[user@]host2:]file2

scp -r [[user@]host1:]file1 … [[user@]host2:]file2

host1 is local ip address and the host to is remote ip address

user is name of the user

you can find respective ip addresses by using ifconfig

Now lets transfer one folder from Local Machine to Remote Server

open terminal and change directory to the location of folder which you want to copy on remote server.

For example:  Data folder in Downloads

cd /home/username/Downloads/

Now your present working directory(pwd) would be /home/username/Downloads/:

To transfer the data folder

scp -r Data/ remoteusername@ipaddress:/homeR/usernameR/DownloadsR

/homeR/usernameR/DownloadsR : this could be anywhere you want to copy, so choose the proper location on your requirements.

 

scp -r input/ shravankumar@10.4.16.29:/users/shravankumar/

shravankumar@10.4.16.29:/users/shravankumar/ => this part is server information and I’m copying the input folder into /users/shravankumar/s

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s