How to use SFTP Commands to Copy Files to/from a Server

Поділитися
Вставка
  • Опубліковано 27 сер 2024
  • Learn how to use SFTP on the command line to copy files and folders to and from an SFTP server. This tutorial will work on any operating system where the SFTP command is installed including Windows, Linux, and Mac.
    Find more at tonyteaches.tech
    Check out my vlog channel ‪@TonyFlorida‬
    #sftp

КОМЕНТАРІ • 76

  • @zer0r00t
    @zer0r00t 3 роки тому +43

    SFTP is actually SSH File Transfer Protocol. Secure FTP is called FTPS (FTP with TLS)

  • @socrayhte
    @socrayhte Рік тому +3

    Pretty straightforward video. Now I would like to make enquiry about moving files from one remote server to another remote server without having to download the files to your PC

    • @yacn
      @yacn 2 місяці тому

      we all do have that enquiry 😃

  • @user-tt6nc6mo7k
    @user-tt6nc6mo7k 3 роки тому +8

    After watching your video on FTP I thought SFTP was also not capable of recursively moving files. These short and straight forward videos are very helpful, thanks.

    • @TonyTeachesTech
      @TonyTeachesTech  3 роки тому +3

      You're welcome. STFP is the way to go, not only because it's secure, but also because of the recursive capability :)

    • @herawati6017
      @herawati6017 Рік тому

      @@TonyTeachesTech hi i see you are good in fstp where u From i need discuss something with you about my database and maybe we can convert the database into Crypto currency

  • @dzorgbesisimon1441
    @dzorgbesisimon1441 6 місяців тому +1

    very beautiful and straight forward. I need more of such tutorials. God bless you Sir

    • @TonyTeachesTech
      @TonyTeachesTech  5 місяців тому

      Thank you for your kind words and thank you so much for subscribing to my channel

  • @Cha0sWarfare
    @Cha0sWarfare 2 місяці тому

    Sorry sir you dropped this 👑. Appreciate the tutorial

  • @tusharadhatrao4749
    @tusharadhatrao4749 Рік тому +1

    Thank you so much for this video. It was really clear and straightforward.

  • @sergiogalvez6231
    @sergiogalvez6231 Рік тому +1

    Thank you so much for this video. It was exactly what I was looking for.

  • @ifebusolaogunbayo2823
    @ifebusolaogunbayo2823 Рік тому

    Thank you! This is very good and straightforward

  • @abdulrehmanbutt
    @abdulrehmanbutt 2 роки тому

    I really like the way you present simple easy and informative thanks for sharing

  • @balthasarbh
    @balthasarbh Рік тому +1

    Thats a very good tutorial :D

  • @tejasdevraj329
    @tejasdevraj329 2 роки тому +1

    Nicely explained!! Thank you :-)

  • @pengsovanrothnak7149
    @pengsovanrothnak7149 Рік тому

    Very nice explain. 👏🏿

  • @user-jk8kn3ij8o
    @user-jk8kn3ij8o 9 місяців тому

    Thanks my dude.

  • @chrisfetchkoproductions7256
    @chrisfetchkoproductions7256 6 місяців тому

    Anyone know how to include hidden files in SFTP directory Gets from Remote Server to local backup?

  • @seekingcode
    @seekingcode 2 роки тому

    Thanks, this is super helpful!

  • @liviataslim7796
    @liviataslim7796 2 роки тому

    this is very helpful. thank you!!

  • @rakeshpanigrahi577
    @rakeshpanigrahi577 2 роки тому

    Awesome Tony :)

  • @somacruz8272
    @somacruz8272 Рік тому

    you're a legend

  • @DHAVAL518
    @DHAVAL518 Рік тому

    Please help me with command to copy files in background.I have big file sizes

  • @rezamohammadi2494
    @rezamohammadi2494 6 місяців тому

    Thank you so much❤❤

  • @replikvltyoutube3727
    @replikvltyoutube3727 2 роки тому

    Good tutorial

  • @davidhume5399
    @davidhume5399 3 роки тому +1

    Is this independent of determining and putting in place the public and private keys associated with SFTP? That is, it makes sense that the public key is separate from the script as it is on the server side and their business. However, what about the private key on the local box (client)? Would it be configured with the sftp before the script is run, or is the key provided along with the connection - or after the connection by a command? Thank you.

    • @TonyTeachesTech
      @TonyTeachesTech  3 роки тому

      This video might clear things up for you ua-cam.com/video/j2vBT3T79Pg/v-deo.html

  • @andredinizo
    @andredinizo 2 роки тому

    Great video!

  • @bharathgullapalli2724
    @bharathgullapalli2724 Рік тому

    is there a way with sftp to download the file only if the folder exists?

  • @ericheatmiser2099
    @ericheatmiser2099 5 днів тому

    Right on step one where you enter the username and host it fails. Host key verification failed. On to the next video that won't work. Wasted over 3 hours already. Each video generates a different error but NONE of the solutions work. Writing an entire application will take less time than trying to get command line sftp to authenticate/work. My credentials work on every ftp client I've tried just can't get the command line to work at all.

  • @hammerod
    @hammerod 10 місяців тому

    SFTP connectivity must be through exchange of keys not through password, if it’s password then SFTP and FTP doesn’t bring much change.

  • @scottyp02
    @scottyp02 Рік тому

    So helpful!!

  • @mikewashington4188
    @mikewashington4188 2 роки тому

    Thanks brother!!

  • @jihadabdulrazaq338
    @jihadabdulrazaq338 2 роки тому

    Awesome, going to subscribe it ;)

  • @user-mq9xo2sd3v
    @user-mq9xo2sd3v 7 місяців тому

    can you do this for iphone root files

  • @Kass_Drags
    @Kass_Drags 2 місяці тому

    Лучший!

  • @abhilashrao3338
    @abhilashrao3338 Рік тому

    How to pass date parameter in sftp put command. Could anyone knows please reply

  • @hragarabaghian1908
    @hragarabaghian1908 Рік тому

    On Windows, where can I find the downloaded files?

  • @balajivijaykumar8829
    @balajivijaykumar8829 2 роки тому

    Hi Tony, Is there any method/Command to pause the download or upload of a file.

  • @punkypappa1381
    @punkypappa1381 2 роки тому

    Hi Tony. In old school ftp I could pipe an ls results to a file, then use that content to decide what I want to copy from the remote to my local.
    It seems sftp doesn't allow piping an ls to a file. Am I missing something? Is there a way to do it. I can provide more background if my question isn't clear. Thanks!

    • @TonyTeachesTech
      @TonyTeachesTech  2 роки тому

      Have you tried this and it failed? Piping to sftp should work

    • @punkypappa1381
      @punkypappa1381 2 роки тому

      @@TonyTeachesTech thanks for reaching out. I haven’t tried it yet because I’m working on a different project. But I’ll be back to it soon.

  • @corgirun7892
    @corgirun7892 Рік тому

    nice

  • @rreddybofficial
    @rreddybofficial 2 роки тому

    Hi, I need one help, how to transfer a file using SFTP call

  • @kenjohnsiosan9707
    @kenjohnsiosan9707 2 роки тому

    AWESOME.

  • @VroomvroomNY
    @VroomvroomNY 2 роки тому

    THANK YOU!!!!!!!!!

  • @janlaurencik7171
    @janlaurencik7171 3 роки тому

    Hey Tony can I ask you how select files in sftp witch I want to upload to new server I need to skip .htacess and wp-config.php when I want to upload files from computer to server and I don`t know how to do it can you help me or give me peace of advice

  • @AlJapairai
    @AlJapairai 2 роки тому

    Now how to automate that to send files daily at a certain time?

    • @TonyTeachesTech
      @TonyTeachesTech  2 роки тому

      A cronjob will do it for you ua-cam.com/video/z35ZPELo5_Y/v-deo.html

  • @DIFFERENTCREATOR
    @DIFFERENTCREATOR 2 роки тому

    Anyone can tell me command for folder transfer on sftp server

  • @bandi642
    @bandi642 2 роки тому

    can u do it with powershell instead of cmd, just to know

    • @TonyTeachesTech
      @TonyTeachesTech  2 роки тому

      Not sure about PowerShell

    • @therevanchistv
      @therevanchistv 2 роки тому

      Yes PowerShell is windows version of ssh

    • @TonyTeachesTech
      @TonyTeachesTech  2 роки тому

      @@therevanchistv I don't doubt it, I just don't have experience with it

  • @zamtyty
    @zamtyty 2 роки тому

    my cheat code at work

  • @fatah5390
    @fatah5390 2 роки тому

    could you make a script to move file from ftp to local dir

  • @joeyconsensus6199
    @joeyconsensus6199 2 роки тому

    I use sftp with file manager krusader
    But i have to specify the ip address of the other linux clients
    How can i setup DHCP on my main linux PC so i can use sftp without specifying the individual pc clients ip address ?

  • @ThatOneBellaTheWolfHater
    @ThatOneBellaTheWolfHater 5 місяців тому

    Better Bandai

  • @pareshbidkar5848
    @pareshbidkar5848 2 роки тому

    How I download file in ASCII mode?
    I used 👉 sftp -b $GETHBBATCHFILE $USER_SFT_IN@$HOST
    But it's downloading in Binary mode.