How To Use The scp Command to Copy a File From Remote to Local (and vice versa)

Sdílet
Vložit
  • čas přidán 6. 09. 2020
  • Learn how securely copy a local file to a remote server or IP with the scp command (as well as download a remote file to your local computer). This tutorial will be working with the Terminal app that's built into Mac and most Linux operating systems.
    Code snippets and more at tonyteaches.tech/scp-tutorial/
    Check out my vlog channel ‪@TonyFlorida‬
    #scp #terminal #securecopy
  • Jak na to + styl

Komentáře • 298

  • @vilocitydev5647
    @vilocitydev5647 Před rokem +10

    I know this is 2 years old, but just wanted to comment to say this helped me more in 7 minutes than googling for 35. Thank you so much!

  • @CGKittenz
    @CGKittenz Před 3 lety +21

    So happy this channel exists! Please keep putting out content like this, you're saving lives man.

    • @TonyTeachesTech
      @TonyTeachesTech  Před 3 lety +1

      Happy to help!

    • @pasindubalasooriya4693
      @pasindubalasooriya4693 Před 2 lety

      ​@@TonyTeachesTech "Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
      lost connection"
      This happens when I give scp command to copy from my mac to oracle cloud. What can I do?

  • @onasanyasegun3311
    @onasanyasegun3311 Před 2 lety +4

    This was simplified and straight to the point. Thank you so much.

  • @Cisco-Instructor
    @Cisco-Instructor Před měsícem

    I know this is 3 years old, but just wanted to comment to say this helped me more in 7 minutes than.....:)

  • @user-ur1rr6cf7y
    @user-ur1rr6cf7y Před 4 měsíci +1

    Love videos like this, straight to the point. First time watching the channel.

  • @torque6389
    @torque6389 Před 2 lety +1

    You are a great teacher! This is very clear and concise. Wonderful job and please keep these videos coming!

  • @anmal9046
    @anmal9046 Před 2 lety

    Your video saved me after at least two hours of frustrated attempts to download my source code from the Linux server to turn in for homework. THANK YOU SO MUCH!!!

  • @user-yx1ey2rn3k
    @user-yx1ey2rn3k Před rokem

    Best explanation ever! been searching for this for hours!

  • @gorby90
    @gorby90 Před měsícem

    Thank you so much, Tony!

  • @fearhunt835
    @fearhunt835 Před 3 lety +3

    That is a briliant, enjoyful, beautiful explanation. Thank you for helping us!

  • @mariacamilabaronamartinez6748

    Love the chill attitude along with the chill explanation

  • @user-ob9oz6qb5i
    @user-ob9oz6qb5i Před 2 lety +3

    Excellent resource on how to use scp. So many examples get it wrong *or* complicate things by getting bogged down with unnecessary details. After this I was able to do both remote client copy with ease. Thanks, decided to subscribe as well. 👌

  • @akshayanand9361
    @akshayanand9361 Před 2 lety

    clean, clear and concise in short "awesome vid"

  • @TheGarageboyz
    @TheGarageboyz Před 2 lety

    Great video! Love your step-by-step approach! Subscribed!

  • @Shankar.Acharya
    @Shankar.Acharya Před rokem

    Thanks AloT !! Really i learn from your tutorial and apply with router/switches.

  • @doublersides
    @doublersides Před 3 lety +15

    Thank you for making it clear, concise, and well demonstrated.

  • @wesley_makes
    @wesley_makes Před 3 lety +4

    Thank you! My school compiles our files on a RedHat server for grading. We're supposed to FTP our programs to there to make certain they compile, but the professor didn't demonstrate well, and some of the TA's don't know how to do this without a GUI. Halfway through the semester, and you finally teach me what I was supposed to learn in week one! I've been getting away with by installing a Linux distro on my old laptop, but now I know how to do it properly. Thank you again!

    • @TonyTeachesTech
      @TonyTeachesTech  Před 3 lety

      😅 Is this college? Happy you found me!

    • @kennethlopez6334
      @kennethlopez6334 Před 2 lety

      My professor sucks. All it says is move the file to the home directory... no demonstration.

    • @brandypaz1917
      @brandypaz1917 Před 2 lety

      i am also using red hat for one of my classes and i noticed alot of people these days are lost without a gui and dont have much experience with using the command line... why???

  • @dushdave8536
    @dushdave8536 Před 3 lety

    Amazing video. Crisp and clear instructions! :))

  • @AAANorthbridge
    @AAANorthbridge Před 2 lety

    Thank you for making it clear

  • @SpartanAlchemist96
    @SpartanAlchemist96 Před 16 dny

    Gracias compadre, me salvaste el fin de semana.

  • @FractalPatrern
    @FractalPatrern Před 2 lety

    Thank you!
    I was constantly making a small mistake that you showed me :)
    Now everything is working :)

  • @dino4447
    @dino4447 Před 2 lety +1

    Thanks Tony! Videos still coming in handy a year later 👍🏼

  • @marcellinwabo1293
    @marcellinwabo1293 Před 2 lety

    A million of thanks for this tutorial.

  • @audreysegura8933
    @audreysegura8933 Před 2 lety

    OMG ! Finally someone that has made this Cristal clear! Thank you so much! I am going to use it to change my screens on my RemarKable 2!

  • @scribblesbysoniya2420

    Thanks alot! This helped me.

  • @hamadk7128
    @hamadk7128 Před 2 lety

    Thanks for the insightful tutorial!

  • @web3beginners
    @web3beginners Před 2 lety

    Thank you mate! That was very helpful

  • @peiweihe7630
    @peiweihe7630 Před rokem

    OMG You really help me a lot! Thank you!

  • @jannikb.9863
    @jannikb.9863 Před 3 lety

    Super helpful dude! Thanks a bunch

  • @sykespro
    @sykespro Před rokem

    Just what I needed... Thanks

  • @inanismailov
    @inanismailov Před 2 lety +2

    i have no idea how someone could dislike this video. very helpful and straight forward

  • @poonkuzhalimuthiah5328

    Thanks for the video. Very userful!

  • @owlradar8170
    @owlradar8170 Před rokem

    You are life saver :)

  • @user-bc5pz5th7t
    @user-bc5pz5th7t Před 11 měsíci

    Thanks a bunch. It really helped me 😊

  • @finnberuldsen4798
    @finnberuldsen4798 Před rokem

    Thanks mate 👍

  • @emirlanaidarov6947
    @emirlanaidarov6947 Před rokem

    Thanks man! You realy help me with this.

  • @badshqrqe5763
    @badshqrqe5763 Před rokem

    Very helpful video

  • @jeremyross7641
    @jeremyross7641 Před 4 měsíci

    Thanks. Great video. Really helpful.

  • @elRafeek
    @elRafeek Před 3 měsíci

    Thank you tony florida

  • @virtuoso_hub
    @virtuoso_hub Před 4 měsíci

    This video saved me hours. Thanks!

  • @lilypacha4940
    @lilypacha4940 Před rokem

    It helps me a lot thank you 😊

  • @OMER3-1-3
    @OMER3-1-3 Před 3 lety

    thank you so much bro it helped me a lot :)

  • @olesya4572
    @olesya4572 Před 9 měsíci

    THANK YOU SO MUCH

  • @vidalesparza8722
    @vidalesparza8722 Před 2 lety

    Great video!

  • @theunicorns7756
    @theunicorns7756 Před rokem +4

    Dude. How are my professors not able to explain this in such a simple and useful way like you? You literally saved me thank you from the heart

  • @quanchichen2695
    @quanchichen2695 Před rokem

    Thank you very much! You saved my day!

  • @mhmtdzgn
    @mhmtdzgn Před 3 lety

    Great explanation.thank you.

  • @victorvalencia7396
    @victorvalencia7396 Před rokem

    Thank you man!

  • @ChArham-bs1ne
    @ChArham-bs1ne Před 11 měsíci

    Very concise, and complete tutorial. Thanks a lot. Btw, I believe it's called tilda sign

  • @mhraihan7422
    @mhraihan7422 Před měsícem

    thanks for the help.
    solve the issues

  • @stefanspinu1637
    @stefanspinu1637 Před 2 lety

    I love the esthetics and the quality of the content.

  • @venkatkoduru372
    @venkatkoduru372 Před 3 lety

    Thank you, it's resolved my issue

  • @yanistoumert3447
    @yanistoumert3447 Před 3 lety

    Great thank u very much my bro !!!

  • @Henry-vw8xg
    @Henry-vw8xg Před 2 lety

    Easy enough. Thank you!

  • @ifeatun6836
    @ifeatun6836 Před 10 měsíci

    thank you so much

  • @alainandrade1997
    @alainandrade1997 Před 3 lety

    thanks so much, you saved my life

  • @RRRR-ds2kt
    @RRRR-ds2kt Před 2 lety

    Thankz bro

  • @davidaj9235
    @davidaj9235 Před 3 lety

    Thank you so much you may have saved my grade. The demonstration was very clear and explained the to and from aspect really well.

    • @TonyTeachesTech
      @TonyTeachesTech  Před 3 lety

      You're very welcome!

    • @davidaj9235
      @davidaj9235 Před 3 lety

      @@TonyTeachesTech btw it works as it asks for the password however the connection is timing out apparently. Would you know why that is?

    • @TonyTeachesTech
      @TonyTeachesTech  Před 3 lety +1

      @@davidaj9235 hmm, nothing comes to mind. You can try to add the -v flag to run the command in verbose mode which will provide you extra output as the command is running. This may help you debug what the problem is

    • @davidaj9235
      @davidaj9235 Před 3 lety

      @@TonyTeachesTech thank you.

  • @karan_deshmane
    @karan_deshmane Před rokem

    Thank you!!

  • @graiglarsen3196
    @graiglarsen3196 Před 3 lety

    thanks great tutorial

  • @JustMoseyinAround
    @JustMoseyinAround Před 3 lety

    Dude, I'm a noob and this helped a lot. Thanks man.

  • @csgojourney
    @csgojourney Před rokem

    Thank you sir.

  • @viktorass4127
    @viktorass4127 Před 2 lety

    thanks, for your help.

  • @travispitts6687
    @travispitts6687 Před 3 lety

    awsome thank you!

  • @johnparker1815
    @johnparker1815 Před rokem

    Dope bro

  • @lightyagami-rk2my
    @lightyagami-rk2my Před 2 lety

    HOpe you get millions of subs. you are the most wonderful guys .this video saved me

  • @nesuleo1779
    @nesuleo1779 Před 3 lety

    Magic! thnx a man

  • @lightyagami-rk2my
    @lightyagami-rk2my Před 2 lety

    Thanks man . you saved me

  • @monkeyterror65
    @monkeyterror65 Před 2 lety

    You don't wanna know how much time I spent trying to copy from linux server -> Mac while on my server. Never even thought I had to do the scp not on my local terminal. Thanks sm

  • @Ahmed_Alqarni
    @Ahmed_Alqarni Před 2 lety

    Thanks brother (:

  • @priyawadekar2505
    @priyawadekar2505 Před 3 lety

    Thank you so much

  • @pandaodin
    @pandaodin Před rokem

    Thanks a lot

  • @ElFentomUwU
    @ElFentomUwU Před 3 lety

    too easy to understand, thanks

  • @daaanrock
    @daaanrock Před 2 lety

    Very good! I don't speak english very well but i understand perflectly. Thanks!

  • @maksimmakarov9541
    @maksimmakarov9541 Před 2 lety

    thx. all works)

  • @jean-michelb7290
    @jean-michelb7290 Před 2 lety

    you are my saviour... i was reading on google that i need to install this and that.. use ftp and useless shit... i knew there was an easy way
    thanks

  • @rajkarmakar3927
    @rajkarmakar3927 Před rokem

    You saved my life. 😘

  • @spondoolie6450
    @spondoolie6450 Před 2 lety

    Hell yeah! You da man

  • @vadymchornyi
    @vadymchornyi Před 11 měsíci

    thanks!

  • @rdx8122
    @rdx8122 Před rokem +1

    Thanks

  • @kietphamhoanganh5641
    @kietphamhoanganh5641 Před 2 lety

    you're genious

  • @Gomtangyeeee
    @Gomtangyeeee Před 9 měsíci

    Thanks for the video! I have one question, does it applies the same way without using password ssh connection?

  • @kapofimweuhala8984
    @kapofimweuhala8984 Před rokem

    Hi Tony., thank you for sharing, have a quick question how do i transfer data between two HPC account?

  • @rileyacosta9168
    @rileyacosta9168 Před 2 lety

    this guy a 🐐

  • @pwpw9190
    @pwpw9190 Před 2 lety

    how would you do the above, but instead of step by step, its a script that gets scheduled on the linux machine that gets run on a predefined scheduled, where it copies a bunch of files from the windows machine INTO the linux machine. The script is running on the linux machine twice daily where the authentication is also in script or happens automatically and there is no need to type it in manually ?

  • @vahidsedighzade4349
    @vahidsedighzade4349 Před 2 lety

    thanks

  • @hhectell
    @hhectell Před rokem

    saved my ass, much appreciated

  • @almania0943
    @almania0943 Před 11 měsíci

    great

  • @Alvarobarja
    @Alvarobarja Před rokem

    How should I do if I have a public/provate key to acces to the server?

  • @rahmarahma-zu6oz
    @rahmarahma-zu6oz Před 11 měsíci

    in case we want to copy only the modified / the new files using scp , is there a way to do it

  • @chrispetersen3613
    @chrispetersen3613 Před 3 lety +8

    The “curly thing” is called a tilde. I’ve heard it pronounced “til-duh.” Thanks for the vid!

  • @AlexRonai
    @AlexRonai Před rokem

    Thank you for the tutorial! I wanted to know, is it possible to copy multiple files at once? Or instead of files, copy a directory? Also, I'm using a vagrant box that I connect in SSH in VSCode, is it possible to open in Finder the remote directory to open the file directly in MacOS without copying them? Like for example having HTML file in the remote and opening them in Safari.

    • @TonyTeachesTech
      @TonyTeachesTech  Před rokem

      I would zip or tar the files first, then do the copy in the same way

  • @abe488
    @abe488 Před 3 měsíci

    Thank You! I had forgotten how to do this!!! From my local Linux terminal, I used Scp to copy a folder using “-r”, to copy a folder from a remote machine to my local Linux machine.
    I thought you can also do from the remote machines terminal to the local machine. Isn’t there a way?

  • @naureenjafri3836
    @naureenjafri3836 Před 2 lety +1

    Can we transfer files which are DATE specific using SCP?

  • @vikasbhardwaj4079
    @vikasbhardwaj4079 Před rokem

    How can we tranfer file from Ubuntu (remote) server to Windows (local machine) . Without using Windows system. I want to use only linux machine and commands to transfer file from ubuntu to local. Is there any way to do that ?

  • @ArgLarper
    @ArgLarper Před 2 lety +1

    Funciona flama, saludos

  • @EASchmidtE
    @EASchmidtE Před 2 lety

    Thank you! It's called a tilde btw

  • @tanner6492
    @tanner6492 Před 3 lety

    Great Tony. Very clean explanation.
    Which port we have to open?

  • @umakha
    @umakha Před rokem

    Is it the only command for copying files between two machines? What about the directories and their children?

  • @SHUBHAMBHAVSAR999
    @SHUBHAMBHAVSAR999 Před rokem

    ssh: Could not resolve hostname ip-172-34-11-61: nodename nor servname provided, or not known
    lost connection
    I am getting this error when i try to copy file from my laptop to remote server. Please help here