How To Use The scp Command to Copy a File From Remote to Local (and vice versa)
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
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!
So happy this channel exists! Please keep putting out content like this, you're saving lives man.
Happy to help!
@@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?
This was simplified and straight to the point. Thank you so much.
I know this is 3 years old, but just wanted to comment to say this helped me more in 7 minutes than.....:)
Love videos like this, straight to the point. First time watching the channel.
You are a great teacher! This is very clear and concise. Wonderful job and please keep these videos coming!
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!!!
Best explanation ever! been searching for this for hours!
Thank you so much, Tony!
That is a briliant, enjoyful, beautiful explanation. Thank you for helping us!
You're very welcome!
Love the chill attitude along with the chill explanation
Thanks! Just over here chillin' 😎
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. 👌
You're very welcome Jimmy
clean, clear and concise in short "awesome vid"
Great video! Love your step-by-step approach! Subscribed!
Thank you very much!
Thanks AloT !! Really i learn from your tutorial and apply with router/switches.
Thank you for making it clear, concise, and well demonstrated.
Glad it was helpful!
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!
😅 Is this college? Happy you found me!
My professor sucks. All it says is move the file to the home directory... no demonstration.
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???
Amazing video. Crisp and clear instructions! :))
Thank you very much :)
Thank you for making it clear
Gracias compadre, me salvaste el fin de semana.
Thank you!
I was constantly making a small mistake that you showed me :)
Now everything is working :)
Great!
Thanks Tony! Videos still coming in handy a year later 👍🏼
Happy to help!
A million of thanks for this tutorial.
Sure thing!
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!
Great!
Thanks alot! This helped me.
Thanks for the insightful tutorial!
You're welcome!
Thank you mate! That was very helpful
You're welcome Zoe
OMG You really help me a lot! Thank you!
Happy to help!
Super helpful dude! Thanks a bunch
You bet!
Just what I needed... Thanks
No problem!
i have no idea how someone could dislike this video. very helpful and straight forward
I appreciate that. :)
Thanks for the video. Very userful!
Glad it was helpful!
You are life saver :)
Thanks a bunch. It really helped me 😊
You're welcome 😊
Thanks mate 👍
Thanks man! You realy help me with this.
Glad I could help!
Very helpful video
Thanks. Great video. Really helpful.
You're welcome!
Thank you tony florida
This video saved me hours. Thanks!
You're welcome!
It helps me a lot thank you 😊
You're welcome 😊
thank you so much bro it helped me a lot :)
You're welcome!
THANK YOU SO MUCH
Great video!
Thanks!
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
Happy to help!
Thank you very much! You saved my day!
Glad I could help!
Great explanation.thank you.
You are welcome!
Thank you man!
You're welcome!
Very concise, and complete tutorial. Thanks a lot. Btw, I believe it's called tilda sign
thanks for the help.
solve the issues
I love the esthetics and the quality of the content.
Thanks Stefan!
Thank you, it's resolved my issue
Great to hear that
Great thank u very much my bro !!!
No problem 👍
Easy enough. Thank you!
You bet!
thank you so much
thanks so much, you saved my life
Glad I could help!
Thankz bro
Thank you so much you may have saved my grade. The demonstration was very clear and explained the to and from aspect really well.
You're very welcome!
@@TonyTeachesTech btw it works as it asks for the password however the connection is timing out apparently. Would you know why that is?
@@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
@@TonyTeachesTech thank you.
Thank you!!
You're welcome!
thanks great tutorial
You're welcome!
Dude, I'm a noob and this helped a lot. Thanks man.
Happy to help!
Thank you sir.
You're welcome!
thanks, for your help.
You're welcome!
awsome thank you!
You're welcome!
Dope bro
HOpe you get millions of subs. you are the most wonderful guys .this video saved me
Appreciate it :)
Magic! thnx a man
You're welcome!
Thanks man . you saved me
You're welcome!
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
You're so welcome!
Thanks brother (:
You're welcome!
Thank you so much
You're welcome
Thanks a lot
Happy to help
too easy to understand, thanks
You are welcome!
Very good! I don't speak english very well but i understand perflectly. Thanks!
Thanks! Happy to hear that Daniel
thx. all works)
You're welcome!
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
You saved my life. 😘
Glad I could help!
Hell yeah! You da man
:)
thanks!
No problem!
Thanks
Welcome
you're genious
:)
Thanks for the video! I have one question, does it applies the same way without using password ssh connection?
Hi Tony., thank you for sharing, have a quick question how do i transfer data between two HPC account?
this guy a 🐐
:)
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 ?
thanks
Welcome
saved my ass, much appreciated
You're welcome!
great
How should I do if I have a public/provate key to acces to the server?
in case we want to copy only the modified / the new files using scp , is there a way to do it
The “curly thing” is called a tilde. I’ve heard it pronounced “til-duh.” Thanks for the vid!
That's right! Tilde :)
Thanks!
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.
I would zip or tar the files first, then do the copy in the same way
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?
Can we transfer files which are DATE specific using SCP?
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 ?
Funciona flama, saludos
👍
Thank you! It's called a tilde btw
Oh thanks!
Great Tony. Very clean explanation.
Which port we have to open?
Thanks! By default, scp runs over TCP port 22
Is it the only command for copying files between two machines? What about the directories and their children?
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