Transferring files with the scp Command (Linux Crash Course Series)

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • The Linux Crash Course Series - Teaching you a valuable Linux command/skill/topic one video at a time! This time around, our journey takes us to the Secure Copy (scp) command, which you can use to copy files from one Linux instance to another via SSH. You'll learn everything you need to know in order to get started with scp so don't miss this video!
    - Set up your own cloud server with Akamai's Connected Cloud (Sponsor) ➜ learnlinux.link/akamai
    LEARN LINUX TV - YOUR HOME FOR LINUX-RELATED FUN AND LEARNING!
    🎓 CROWDSTRIKE CRASH SURVIVOR T-SHIRT
    Commemorate the largest outage in history with the latest addition to the LLTV merch shop.
    Get yours here ➜ learnlinux.link/crash-shirt
    🎓 BRAND NEW UDEMY COURSES AVAILABLE!
    Check out my new courses on Udemy and learn something new!
    • Getting Started with Ansible ➜ learnlinux.link/ansible
    • LPI Linux Essentials Complete Workshop ➜ learnlinux.link/linux-essentials
    🐧 SUPPORT LINUX LEARNING!
    • Grab some Linux swag ➜ merch.learnlinux.tv
    • Become a Channel Member ➜ learnlinux.link/member
    • Become a Patron ➜ learnlinux.link/patron
    • 5% discount on LPI exam vouchers ➜ learnlinux.link/lpi-voucher
    • Check out my latest book ➜ ubuntuserverbook.com
    • Grab an awesome Pi-powered KVM ➜ learnlinux.link/tinypilot
    • Jay's Gear - Server, Computer and Video Production Stuff ➜ learnlinux.link/amazon
    Note: Royalties and/or commission is earned from each of the above links
    ⏰ TIME CODES
    00:00 - Intro
    01:35 - Set up your own Linux server with Akamai Connected Cloud (sponsor)
    02:53 - The scp command is usually preinstalled
    03:48 - with scp, file transfers are performed via SSH
    04:13 - Prerequisite - a Linux server (to copy files to)
    05:11 - Basic usage of the scp command on Linux
    08:15 - Using scp in the opposite direction (transfer from remote to local)
    09:08 - Quick SSH tip - execute a single command against a server
    11:31 - Simplifying the scp command
    14:13 - Transferring an entire directory with scp (recursive option)
    16:32 - Transferring files with scp while also retaining modification times/dates
    17:54 - How to use scp with a non-standard SSH port
    Full Courses from Learn Linux TV
    • Linux Crash Course series ➜ linux.video/cc
    • Learn how to exit use tmux ➜ linux.video/tmux
    • Learn how to use vim ➜ linux.video/vim
    • Bash Scripting Series ➜ linux.video/bash
    • Proxmox VE Cluster Full Course ➜ linux.video/pve
    • Learn Ansible ➜ linux.video/ansible
    🌐 LEARN LINUX TV ON THE WEB
    • Main site ➜ www.learnlinux.tv
    • Community ➜ community.learnlinux.tv
    • Official Github Account ➜ github.com/LearnLinuxTV
    • Enterprise Linux Security Podcast ➜ enterpriselinuxsecurity.show
    • The Homelab Show Podcast ➜ thehomelab.show
    • Jay on Udemy ➜ www.udemy.com/user/jay-lacroix-3
    • Jay on Twitter ➜ x.com/JayTheLinuxGuy
    • Content Ethics ➜ www.learnlinux.tv/content-ethics
    • Request Assistance ➜ www.learnlinux.tv/request-ass...
    ⚠️ DISCLAIMER
    LearnLinuxTV produces technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). LearnLinuxTV is not responsible for any damages that may arise from any use of the content and information that's being provided. The viewer is expected to follow best judgement and to make his/her/their best decisions while working with production or non-production software, systems and hardware.
    #Linux #devops #linuxcommands
  • Věda a technologie

Komentáře • 25

  • @SwiatLinuksa
    @SwiatLinuksa Před rokem +9

    Near 5 years I'm looking your channel.. and you're Jay inspired me to start 4 years ago Polish Linux channel.. thanks for everything you doing for Linux community! Great job

  • @jacobsoby3910
    @jacobsoby3910 Před rokem +3

    I'm looking forward to your rsync video as well. Very nice into, still watching... I've used scp in the past, never rsync though.

  • @vallabh81
    @vallabh81 Před rokem

    hi sir i am from india.learn a lot about linux from ur channel.namaste from india "linux GURU"🙏🏻🙏🏻🙏🏻

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

    Thanks to you and your videos I was able to copy files from a Rapberry Pi file system over to a bootable Batocera USB and it worked perfectly thank you for your videos!

  • @Carhill
    @Carhill Před rokem +3

    Story time: Few weeks back I had to rip an ISO of a Windows disc, but the machines were locked down. The machines recently had VMWare installed... where I'd installed Kubuntu. I passed the CD through to Kubuntu where I could no permissions issues, grabbed a reputable tool to turn it into an ISO. But, then was struggling to get it out of there... So I used SCP from Powershell in the host machine to grab it from the VM. Quite convoluted, but it worked. 😂

  • @kdg1955
    @kdg1955 Před rokem +2

    'scp' is part of the openssh package (package openssh-clients on dnf-distribution). So if you have 'ssh' then you probably have 'scp' too.
    Package openssh provides also 'sftp'.

  • @SB-qm5wg
    @SB-qm5wg Před rokem +3

    An extra. The one difference between scp and ssh is the port flag. For scp it's uppercase -P for port and ssh it's lower case -p . I get those mixed up sometimes as I use non-standard service ports.

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

    Nice and helpful video !

  • @BigelowInventions
    @BigelowInventions Před 2 měsíci

    Great tutorial!

  • @christopherjackson2157
    @christopherjackson2157 Před rokem +3

    Looking forward to a new rsync video. I use the tool, but I feel like there's lots of useful functionality in it that I'm unaware of

    • @HadToChangeMyName_YoutubeSucks
      @HadToChangeMyName_YoutubeSucks Před rokem

      Is anyone really aware of all that rsync can do? Fantastic tool, but just man rsync (1) is over 50 pages long..

  • @LoayAl-Said-ey2su
    @LoayAl-Said-ey2su Před 4 měsíci

    I do appreciate you work
    Thanks alot.
    Take some time to think about your impact and how much you leave and how much you helped,
    Thanks
    Loay, from Egypt

  • @user-ng8rl3jb1i
    @user-ng8rl3jb1i Před 6 měsíci

    very nice! it would be helpfull to show how we can start a server in another machine too

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

    Thanks

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

    Was hoping there was talks about permissions both in the local server and remote

  • @DDBAA24
    @DDBAA24 Před rokem

    I just stared using 'scp -rp' more often, and 'pigz'. My go-to has been rsync for a long time. I like pigz because it removes the original files while writing a .tar.gz archive to another location. When low on disk space its the better option to free up space, IF you have barely any space left to create the archive in your pwd.

  • @michaelharbuck3314
    @michaelharbuck3314 Před rokem

    I use 'croc' on my inside network. Its a neat little program. I was able to compile it from source on my MangoPi RISC-V board thing. It worked. pretty cool. ubuntu server runs pretty good on it for a single core. hosts up static web sites no prob.

  • @NeUrOmAnCeRAI
    @NeUrOmAnCeRAI Před rokem

    Great tool supported by the SCP Foundation.

  • @PaPaTheGMan1215
    @PaPaTheGMan1215 Před rokem +1

    Thanks, your videos are always well done and helpful. Can you describe how to use this in an unattended script (i.e., cron) when the target server needs a password for access.

  • @kencreten7308
    @kencreten7308 Před rokem

    Nice shirt! impressive, most impressive.

  • @WalterPetrovic
    @WalterPetrovic Před 5 měsíci

    Can you do all this copying via GUI from one computer to another, including servers?

  • @joelwalberg9802
    @joelwalberg9802 Před 6 měsíci

    Can you relay the part about not memorizing everything to COMPTIA please?

  • @jeremiahbullfrog9288
    @jeremiahbullfrog9288 Před rokem

    Beware: if your login script (.bashrc etc) writes any text to the terminal, scp will fail with crpytic behavior.

  • @dominick253
    @dominick253 Před rokem +7

    Pretty sure it stands for secure containe protect 😂😂😂

    • @yensteel
      @yensteel Před rokem

      You deserve the SCP 999! Also, this channel is SCP 5094 in the flesh 👍