Тёмный

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

Tony Teaches Tech
Подписаться 105 тыс.
Просмотров 191 тыс.
50% 1

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

Хобби

Опубликовано:

 

6 сен 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 298   
@vilocitydev5647
@vilocitydev5647 Год назад
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!
@anmal9046
@anmal9046 2 года назад
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!!!
@CGKittenz
@CGKittenz 3 года назад
So happy this channel exists! Please keep putting out content like this, you're saving lives man.
@TonyTeachesTech
@TonyTeachesTech 3 года назад
Happy to help!
@pasindubalasooriya4693
@pasindubalasooriya4693 2 года назад
​@@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?
@user-ob9oz6qb5i
@user-ob9oz6qb5i 2 года назад
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. 👌
@TonyTeachesTech
@TonyTeachesTech 2 года назад
You're very welcome Jimmy
@torque6389
@torque6389 2 года назад
You are a great teacher! This is very clear and concise. Wonderful job and please keep these videos coming!
@user-ur1rr6cf7y
@user-ur1rr6cf7y 4 месяца назад
Love videos like this, straight to the point. First time watching the channel.
@onasanyasegun3311
@onasanyasegun3311 2 года назад
This was simplified and straight to the point. Thank you so much.
@wesley_makes
@wesley_makes 3 года назад
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 3 года назад
😅 Is this college? Happy you found me!
@kennethlopez6334
@kennethlopez6334 2 года назад
My professor sucks. All it says is move the file to the home directory... no demonstration.
@brandypaz1917
@brandypaz1917 2 года назад
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???
@mariacamilabaronamartinez6748
@mariacamilabaronamartinez6748 3 года назад
Love the chill attitude along with the chill explanation
@TonyTeachesTech
@TonyTeachesTech 3 года назад
Thanks! Just over here chillin' 😎
@inanismailov
@inanismailov 2 года назад
i have no idea how someone could dislike this video. very helpful and straight forward
@TonyTeachesTech
@TonyTeachesTech 2 года назад
I appreciate that. :)
@Cisco-Instructor
@Cisco-Instructor Месяц назад
I know this is 3 years old, but just wanted to comment to say this helped me more in 7 minutes than.....:)
@fearhunt835
@fearhunt835 3 года назад
That is a briliant, enjoyful, beautiful explanation. Thank you for helping us!
@TonyTeachesTech
@TonyTeachesTech 3 года назад
You're very welcome!
@ChArham-bs1ne
@ChArham-bs1ne Год назад
Very concise, and complete tutorial. Thanks a lot. Btw, I believe it's called tilda sign
@user-yx1ey2rn3k
@user-yx1ey2rn3k Год назад
Best explanation ever! been searching for this for hours!
@dino4447
@dino4447 2 года назад
Thanks Tony! Videos still coming in handy a year later 👍🏼
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Happy to help!
@gorby90
@gorby90 Месяц назад
Thank you so much, Tony!
@theunicorns7756
@theunicorns7756 Год назад
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
@TonyTeachesTech
@TonyTeachesTech Год назад
Happy to help!
@audreysegura8933
@audreysegura8933 2 года назад
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!
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Great!
@Shankar.Acharya
@Shankar.Acharya Год назад
Thanks AloT !! Really i learn from your tutorial and apply with router/switches.
@akshayanand9361
@akshayanand9361 2 года назад
clean, clear and concise in short "awesome vid"
@TheGarageboyz
@TheGarageboyz 2 года назад
Great video! Love your step-by-step approach! Subscribed!
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Thank you very much!
@stefanspinu1637
@stefanspinu1637 2 года назад
I love the esthetics and the quality of the content.
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Thanks Stefan!
@FractalPatrern
@FractalPatrern 2 года назад
Thank you! I was constantly making a small mistake that you showed me :) Now everything is working :)
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Great!
@doublersides
@doublersides 3 года назад
Thank you for making it clear, concise, and well demonstrated.
@TonyTeachesTech
@TonyTeachesTech 3 года назад
Glad it was helpful!
@dushdave8536
@dushdave8536 3 года назад
Amazing video. Crisp and clear instructions! :))
@TonyTeachesTech
@TonyTeachesTech 3 года назад
Thank you very much :)
@monkeyterror65
@monkeyterror65 2 года назад
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
@TonyTeachesTech
@TonyTeachesTech 2 года назад
You're so welcome!
@jean-michelb7290
@jean-michelb7290 2 года назад
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
@SpartanAlchemist96
@SpartanAlchemist96 28 дней назад
Gracias compadre, me salvaste el fin de semana.
@marcellinwabo1293
@marcellinwabo1293 2 года назад
A million of thanks for this tutorial.
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Sure thing!
@peiweihe7630
@peiweihe7630 Год назад
OMG You really help me a lot! Thank you!
@TonyTeachesTech
@TonyTeachesTech Год назад
Happy to help!
@hamadk7128
@hamadk7128 2 года назад
Thanks for the insightful tutorial!
@TonyTeachesTech
@TonyTeachesTech 2 года назад
You're welcome!
@jeremyross7641
@jeremyross7641 5 месяцев назад
Thanks. Great video. Really helpful.
@TonyTeachesTech
@TonyTeachesTech 4 месяца назад
You're welcome!
@emirlanaidarov6947
@emirlanaidarov6947 Год назад
Thanks man! You realy help me with this.
@TonyTeachesTech
@TonyTeachesTech Год назад
Glad I could help!
@user-bc5pz5th7t
@user-bc5pz5th7t 11 месяцев назад
Thanks a bunch. It really helped me 😊
@TonyTeachesTech
@TonyTeachesTech 11 месяцев назад
You're welcome 😊
@davidaj9235
@davidaj9235 3 года назад
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 3 года назад
You're very welcome!
@davidaj9235
@davidaj9235 3 года назад
@@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 3 года назад
@@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 3 года назад
@@TonyTeachesTech thank you.
@sykespro
@sykespro Год назад
Just what I needed... Thanks
@TonyTeachesTech
@TonyTeachesTech Год назад
No problem!
@virtuoso_hub
@virtuoso_hub 5 месяцев назад
This video saved me hours. Thanks!
@TonyTeachesTech
@TonyTeachesTech 4 месяца назад
You're welcome!
@JustMoseyinAround
@JustMoseyinAround 3 года назад
Dude, I'm a noob and this helped a lot. Thanks man.
@TonyTeachesTech
@TonyTeachesTech 3 года назад
Happy to help!
@pwpw9190
@pwpw9190 2 года назад
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 ?
@web3beginners
@web3beginners 2 года назад
Thank you mate! That was very helpful
@TonyTeachesTech
@TonyTeachesTech 2 года назад
You're welcome Zoe
@elRafeek
@elRafeek 3 месяца назад
Thank you tony florida
@poonkuzhalimuthiah5328
@poonkuzhalimuthiah5328 2 года назад
Thanks for the video. Very userful!
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Glad it was helpful!
@kapofimweuhala8984
@kapofimweuhala8984 Год назад
Hi Tony., thank you for sharing, have a quick question how do i transfer data between two HPC account?
@Gomtangyeeee
@Gomtangyeeee 10 месяцев назад
Thanks for the video! I have one question, does it applies the same way without using password ssh connection?
@badshqrqe5763
@badshqrqe5763 Год назад
Very helpful video
@jannikb.9863
@jannikb.9863 3 года назад
Super helpful dude! Thanks a bunch
@TonyTeachesTech
@TonyTeachesTech 3 года назад
You bet!
@AAANorthbridge
@AAANorthbridge 2 года назад
Thank you for making it clear
@scribblesbysoniya2420
@scribblesbysoniya2420 Год назад
Thanks alot! This helped me.
@lilypacha4940
@lilypacha4940 Год назад
It helps me a lot thank you 😊
@TonyTeachesTech
@TonyTeachesTech Год назад
You're welcome 😊
@mhraihan7422
@mhraihan7422 2 месяца назад
thanks for the help. solve the issues
@Alvarobarja
@Alvarobarja Год назад
How should I do if I have a public/provate key to acces to the server?
@rahmarahma-zu6oz
@rahmarahma-zu6oz 11 месяцев назад
in case we want to copy only the modified / the new files using scp , is there a way to do it
@owlradar8170
@owlradar8170 Год назад
You are life saver :)
@finnberuldsen4798
@finnberuldsen4798 Год назад
Thanks mate 👍
@vikasbhardwaj4079
@vikasbhardwaj4079 Год назад
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 ?
@lightyagami-rk2my
@lightyagami-rk2my 2 года назад
HOpe you get millions of subs. you are the most wonderful guys .this video saved me
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Appreciate it :)
@olesya4572
@olesya4572 10 месяцев назад
THANK YOU SO MUCH
@ohi-data
@ohi-data Год назад
Hello, I have a Question Its possible use scp without password request and with and with an keygen already create ?
@OMER3-1-3
@OMER3-1-3 3 года назад
thank you so much bro it helped me a lot :)
@TonyTeachesTech
@TonyTeachesTech 3 года назад
You're welcome!
@RRRR-ds2kt
@RRRR-ds2kt 2 года назад
Thankz bro
@abe488
@abe488 3 месяца назад
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?
@mhmtdzgn
@mhmtdzgn 3 года назад
Great explanation.thank you.
@TonyTeachesTech
@TonyTeachesTech 3 года назад
You are welcome!
@victorvalencia7396
@victorvalencia7396 Год назад
Thank you man!
@TonyTeachesTech
@TonyTeachesTech Год назад
You're welcome!
@quanchichen2695
@quanchichen2695 Год назад
Thank you very much! You saved my day!
@TonyTeachesTech
@TonyTeachesTech Год назад
Glad I could help!
@SHUBHAMBHAVSAR999
@SHUBHAMBHAVSAR999 Год назад
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
@umakha
@umakha Год назад
Is it the only command for copying files between two machines? What about the directories and their children?
@naureenjafri3836
@naureenjafri3836 2 года назад
Can we transfer files which are DATE specific using SCP?
@johnparker1815
@johnparker1815 Год назад
Dope bro
@mayakaur6411
@mayakaur6411 2 года назад
Hii.. I tried this command, but getting an error saying 'Connection timed out lost connection' What should be done??
@ifeatun6836
@ifeatun6836 10 месяцев назад
thank you so much
@venkatkoduru372
@venkatkoduru372 3 года назад
Thank you, it's resolved my issue
@TonyTeachesTech
@TonyTeachesTech 3 года назад
Great to hear that
@daaanrock
@daaanrock 2 года назад
Very good! I don't speak english very well but i understand perflectly. Thanks!
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Thanks! Happy to hear that Daniel
@viktorass4127
@viktorass4127 2 года назад
thanks, for your help.
@TonyTeachesTech
@TonyTeachesTech 2 года назад
You're welcome!
@yanistoumert3447
@yanistoumert3447 3 года назад
Great thank u very much my bro !!!
@TonyTeachesTech
@TonyTeachesTech 3 года назад
No problem 👍
@csgojourney
@csgojourney Год назад
Thank you sir.
@TonyTeachesTech
@TonyTeachesTech Год назад
You're welcome!
@vjyothsnapriya
@vjyothsnapriya 18 дней назад
com port is connect one system to another system in steps sir please help me sir.
@Henry-vw8xg
@Henry-vw8xg 2 года назад
Easy enough. Thank you!
@TonyTeachesTech
@TonyTeachesTech 2 года назад
You bet!
@karan_deshmane
@karan_deshmane Год назад
Thank you!!
@TonyTeachesTech
@TonyTeachesTech Год назад
You're welcome!
@shreyanreddy4690
@shreyanreddy4690 Год назад
How to send multiple files from local server to remote server???
@alainandrade1997
@alainandrade1997 3 года назад
thanks so much, you saved my life
@TonyTeachesTech
@TonyTeachesTech 3 года назад
Glad I could help!
@granthuffmanreal
@granthuffmanreal Год назад
I need to transfer a file folder from a raspberry pi to mac but when I did the exact same thing as you did with the folder name, it said 'not a regular file'. Any insight would be helpful
@granthuffmanreal
@granthuffmanreal Год назад
figure it out, put -r after the scp
@vidalesparza8722
@vidalesparza8722 2 года назад
Great video!
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Thanks!
@graiglarsen3196
@graiglarsen3196 3 года назад
thanks great tutorial
@TonyTeachesTech
@TonyTeachesTech 3 года назад
You're welcome!
@thesudu
@thesudu 9 месяцев назад
How to do this if I have a pem file and not a password?
@SuperPBrady
@SuperPBrady Год назад
What about for an entire folder in your local directory?
@travispitts6687
@travispitts6687 3 года назад
awsome thank you!
@TonyTeachesTech
@TonyTeachesTech 3 года назад
You're welcome!
@pandaodin
@pandaodin Год назад
Thanks a lot
@TonyTeachesTech
@TonyTeachesTech Год назад
Happy to help
@Ahmed_Alqarni
@Ahmed_Alqarni 2 года назад
Thanks brother (:
@TonyTeachesTech
@TonyTeachesTech 2 года назад
You're welcome!
@shaikmasihulla
@shaikmasihulla Год назад
Hi Tonny i am using same command but it is showing a message like no such file or directory but on remote it is there. please help me out
@shaikmasihulla
@shaikmasihulla Год назад
but the same command is successful when i move the file to root location in remote machine.
@BhanteSubhuti
@BhanteSubhuti Год назад
If you can explain how to do with servers with ssh key that would be very good. I destroyed my server and started over with password. It was just for building linux appimage in 18.04 but it is good to know how to do with ssh key (using linux)
@maksimmakarov9541
@maksimmakarov9541 2 года назад
thx. all works)
@TonyTeachesTech
@TonyTeachesTech 2 года назад
You're welcome!
@uselaweb7857
@uselaweb7857 2 года назад
Thanks for video, but scp from my Mac Big Sur M1 to server don't work. Server is online, ssh commands run ok, server space ok. I received message: ssh: connect to host x.x.x.x port 22: Operation timed out lost connection. Help please
@TonyTeachesTech
@TonyTeachesTech 2 года назад
If ssh is working okay, I don't know what the problem could be
@lightyagami-rk2my
@lightyagami-rk2my 2 года назад
Thanks man . you saved me
@TonyTeachesTech
@TonyTeachesTech 2 года назад
You're welcome!
@rushdamuneer
@rushdamuneer 2 года назад
I'm trying to copy a folder from remote server to local machine but because it uses a different port, I'm unable to do so. How to modify the command in this case? Thanks
@TonyTeachesTech
@TonyTeachesTech 2 года назад
To copy a folder, I would suggest zipping it up and then doing the copy
@chrispetersen3613
@chrispetersen3613 3 года назад
The “curly thing” is called a tilde. I’ve heard it pronounced “til-duh.” Thanks for the vid!
@TonyTeachesTech
@TonyTeachesTech 3 года назад
That's right! Tilde :) Thanks!
@priyawadekar2505
@priyawadekar2505 3 года назад
Thank you so much
@TonyTeachesTech
@TonyTeachesTech 3 года назад
You're welcome
@anupampal3738
@anupampal3738 3 года назад
No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic) I am getting this error please help me out
@TonyTeachesTech
@TonyTeachesTech 3 года назад
Sounds like an issue on the server side. I'm not sure how to help you with that
@nesuleo1779
@nesuleo1779 3 года назад
Magic! thnx a man
@TonyTeachesTech
@TonyTeachesTech 3 года назад
You're welcome!
@dhanushkadesilva6436
@dhanushkadesilva6436 Год назад
does this work for windows?
@AlexRonai
@AlexRonai 2 года назад
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 2 года назад
I would zip or tar the files first, then do the copy in the same way
Далее
В GEOMETRY DASH СДЕЛАЛИ GTA
00:27
Просмотров 694 тыс.
2DROTS vs WYLSACOM! КУБОК ФИФЕРОВ 1 ТУР
07:25
How NVIDIA just beat every other tech company
9:20
Просмотров 1,1 млн
How to not get hacked: real example
13:55
Просмотров 391 тыс.
60 Linux Commands you NEED to know (in 10 minutes)
10:50
Stow has forever changed the way I manage my dotfiles
8:09
Покатал Дашку #сочи
1:00
Просмотров 3 млн