How to upload a file from the command line with FTP or SSH?

Andrew

I have never done this before and I am creating a bash shell script to do this for me. I will also be connecting via ssh to do some things (which I already know how to do). So maybe there is a way to upload files via ssh so I can do it all in one connection?

How can I do this?

#!/bin/sh

cd ./files-to-upload
#upload the files
tangens

You can use scp to copy to a remote machine.

scp <file to upload> <username>@<hostname>:<destination path>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Upload the whole directory with FTP from the command line

From Dev

upload ssh key on github from command line

From Dev

Rename local file before upload to FTP in Windows command-line

From Dev

How to download a file from the command line? via ssh?

From Dev

How to Download file from one FTP and then Upload file to different FTP?

From Dev

How do I pass a username to an FTP command from the command line?

From Dev

CURL command line tool - Delete File from FTP server

From Dev

upload file via ftp from ftp in PHP

From Dev

Node.js file upload from command line interface

From Dev

How to upload a sqlite db file to ftp server from android program

From Dev

How to upload a sqlite db file to ftp server from android program

From Dev

How to download files matching a particular pattern from ftp command line

From Dev

How do I FTP multiple files from the command line?

From Dev

How can i upload file by command line via sftp?

From Dev

How to do file transfer inside ssh command line?

From Java

How to upload to App Store from command line with Xcode 11?

From Dev

How to select a column from a file with command line

From Dev

How to take command line parameters from a file

From Dev

How to clear the contents of a file from the command line?

From Dev

How to create an empty file from command line

From Dev

I can't connect and upload to FTP by command line

From Dev

I can't connect and upload to FTP by command line

From Dev

Ajax upload a file from browser to FTP server

From Dev

Upload a file to an FTP server from a string or stream

From Dev

Download file from url and upload into ftp

From Dev

PHP upload to FTP from file contents

From Dev

FTP File upload from Memory in C

From Dev

Ajax upload a file from browser to FTP server

From Dev

FTP File upload from Memory in C

Related Related

  1. 1

    Upload the whole directory with FTP from the command line

  2. 2

    upload ssh key on github from command line

  3. 3

    Rename local file before upload to FTP in Windows command-line

  4. 4

    How to download a file from the command line? via ssh?

  5. 5

    How to Download file from one FTP and then Upload file to different FTP?

  6. 6

    How do I pass a username to an FTP command from the command line?

  7. 7

    CURL command line tool - Delete File from FTP server

  8. 8

    upload file via ftp from ftp in PHP

  9. 9

    Node.js file upload from command line interface

  10. 10

    How to upload a sqlite db file to ftp server from android program

  11. 11

    How to upload a sqlite db file to ftp server from android program

  12. 12

    How to download files matching a particular pattern from ftp command line

  13. 13

    How do I FTP multiple files from the command line?

  14. 14

    How can i upload file by command line via sftp?

  15. 15

    How to do file transfer inside ssh command line?

  16. 16

    How to upload to App Store from command line with Xcode 11?

  17. 17

    How to select a column from a file with command line

  18. 18

    How to take command line parameters from a file

  19. 19

    How to clear the contents of a file from the command line?

  20. 20

    How to create an empty file from command line

  21. 21

    I can't connect and upload to FTP by command line

  22. 22

    I can't connect and upload to FTP by command line

  23. 23

    Ajax upload a file from browser to FTP server

  24. 24

    Upload a file to an FTP server from a string or stream

  25. 25

    Download file from url and upload into ftp

  26. 26

    PHP upload to FTP from file contents

  27. 27

    FTP File upload from Memory in C

  28. 28

    Ajax upload a file from browser to FTP server

  29. 29

    FTP File upload from Memory in C

HotTag

Archive