Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uploading files from my computer to an ubuntu server

Tags:

server

ubuntu

i'm connected to an Ubuntu server via putty (ssh). i want to be able to upload files from my computer to the server. the file i'm trying to upload is a .zip file, so are there any restrictions for that? I'm using windows 7 OS. please help.

like image 962
jukerok Avatar asked Mar 10 '17 17:03

jukerok


People also ask

How do I transfer files from local machine to Ubuntu server?

To copy the files you will need to first invoke the SCP, followed by the remote username@IP address, path to file. If you do not specify the path, it is assumed as default in this case which will be the user's home directory, this will be followed the path where the file will be stored locally.

How do I transfer files from PC to Linux server?

4 Ways to Transfer Files From Windows to LinuxSecurely copy files via SSH. Windows to Linux file transfer with FTP. Share data using sync software. Use shared folders in your Linux virtual machine.


2 Answers

It depends your local operating system you are using.

  • If you are using Windows you can use winscp but you will have to unzip it before moving it to the Ubuntu server from what I know.
  • If you are using Linux you can use the scp command line utility. For example you can run:

    scp path/to/file/tomove user@host:path/to/file/topaste
    
like image 138
Platwn Ace Avatar answered Jan 03 '23 20:01

Platwn Ace


You can use scp line command to copy a file through ssh

        scp /path/to/file username@a:/path/to/destination

Mode details here

like image 36
Guilherme Avatar answered Jan 03 '23 20:01

Guilherme