SCP Linux 명령 - Linux에서 파일을 안전하게 전송합니다
Linux 관리자는 명령 줄 환경에 익숙해야합니다. Linux 서버에서 GUI ( 그래픽 사용자 인터페이스 ) 모드가 일반적으로 설치되지 않기 때문에.
SSH는 Linux 관리자가 원격 위치에서 서버를 안전하게 관리 할 수 있도록 가장 인기있는 프로토콜 일 수 있습니다. SSH 명령에 내장 된 SCP 명령은 서버간에 파일을 단단히 복사하는 데 사용됩니다.
당신은 또한 좋아할 수도 있습니다 :
- SSH 서버를 보호하고 강화하는 방법
- Linux의 기본 SSH 명령 사용 및 구성
- Linux에서 SSH Brute-Force 로그인 공격을 방지하는 방법
SCP 명령의 기본 구문
아래 명령은 " username "계정을 사용하여 " source_file_name "을 " destination_host "에서 " destination_folder "로 복사하여 읽습니다.
<code>scp source_file_name username@destination_host:destination_folder</code>
SCP 명령에는 사용할 수있는 많은 매개 변수가 있습니다. 다음은 매일 사용될 수있는 매개 변수입니다.
목차
### Linux에서 파일을 안전하게 전송합니다매개 변수가없는 기본 SCP 명령은 백그라운드에서 파일을 복사합니다. 프로세스가 완료되거나 일부 오류가 나타나지 않으면 사용자는 아무것도 보지 못합니다.
" -v
"매개 변수를 사용하여 디버그 정보를 화면에 인쇄 할 수 있습니다. 연결, 인증 및 구성 문제를 디버그하는 데 도움이 될 수 있습니다.
로컬 호스트에서 원격 서버로 파일을 복사하십시오
다음 명령은 로컬에서 /home /tecmint 디렉토리의 원격 Linux 시스템으로 " SCP-CheatSheet.pdf "파일을 복사합니다.
<code>$ scp -v scp-cheatsheet.pdf [email protected]:/home/tecmint/.</code>
샘플 출력 :
SCP -원격 Linux 서버에 파일을 복사하십시오.````실행 : 프로그램/USR/BIN/SSH 호스트 192.168.0.183, 사용자 tecmint, 명령 scp -v -t/home/tecmint/. OpenSsh_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 3 월 2020 년 3 월 31 일 Debug1 : 구성 데이터 등/ssh/ssh_config debug1 :/ssh/ssh_config line 19 :/etc/ssh/ssh_config.d/ .conf 1 :/ssh/ssh _ 21 :/ssh/ssh _ 포함. Debug1 에 대한 옵션 적용 : 192.168.0.183에 연결 [192.168.0.183] 포트 22. Debug1 : 연결 설정. Debug1 : Identity file /home/tecmint/.ssh/id_rsa type -1 debug1 : Identity file /home/tecmint/.ssh/id_rsa-cert type -1 debug1 : Identity file /home/tecmint/.ssh/id_dsa type -1 debug1 : ID /home/tecmint/shome/tecmint/shome/tecmint/shome/tecmint/ Identity file /home/tecmint/.ssh/id_ecdsa type -1 debug1 : Identity file /home/tecmint/.ssh/id_ecdsa-cert type -1 debug1 : Identity file /home/tecmint/.ssh/id_ecdsa_sk type -1 debug1 : identity file /home/tecmint/ssh/id_ecdsa_. Debug1 : ID 파일 /home/tecmint/.ssh/id_ed25519 형식 -1 디버그 1 : Identity file /home/tecmint/.ssh/id_ed25519-cert type -1 debug1 : Identity file /home/home/tecmint/.ssh/id_ed25519_sk type -1 Debug1 : Ider Pile /home/tecmint/.ssh/id_ed25519_sk-cert 유형 -1 Debug1 : Identity files /home/tecmint/.ssh/id_xmss 유형 -1 ...
<code>#### Copy File From Remote Host to Local Host</code> 다음 명령은 원격 호스트에서 <strong>/home /tecmint</strong> 디렉토리의 로컬 시스템으로 " <strong>ssh-cheatsheet.pdf</strong> "파일을 복사합니다.
$ scp -v [이메일 보호] :/home/ravi/ssh -cheatsheet.pdf/home/tecmint/.
<p> <strong>샘플 출력</strong> :</p><p> SCP - 로컬 시스템에 파일을 복사하십시오.`` 실행 : 프로그램/usr/bin/ssh 호스트 192.168.0.183, 사용자 tecmint, command scp -v -f /home/ravi/ssh-cheatsheet.pdf OpenSSH_8.2P1 UBUNTU-4UBUNTU0.5, OPENSSL 1.1.1F 2020 년 3 월 31 일 Debug1 : 구성 데이터 읽기/etc/ssh/ssh_config Debug1 :/etc/ssh/ssh_config 라인 19 : <em>/etc/ssh/ssh_config.d/</em> 포함<em> Debug1 :/etc/ssh/ssh_config 라인 21 : 옵션 적용</em> 디버그 1 : 192.168.0.183에 연결 [192.168.0.183] 포트 22. 디버그 1 : 연결이 설정되었습니다. Debug1 : Identity file /home/tecmint/.ssh/id_rsa 유형 -1 Debug1 : Identity file /home/tecmint/.ssh/id_rsa-cert 유형 -1 Debug1 : Identity file /home/tecmint/.ssh/id_dsa 유형 -1 Debug1 : Identity file /home/tecmint/.ssh/id_dsa-cert 유형 -1 Debug1 : Identity file /home/tecmint/.ssh/id_ecdsa 유형 -1 Debug1 : Identity file /home/tecmint/.ssh/id_ecdsa-cert 유형 -1 Debug1 : Identity file /home/tecmint/.ssh/id_ecdsa_sk 유형 -1 Debug1 : Identity file /home/tecmint/.ssh/id_ecdsa_sk-cert 유형 -1 Debug1 : Identity file /home/tecmint/.ssh/id_ed25519 type -1 Debug1 : Identity file /home/tecmint/.ssh/id_ed</p>
위 내용은 SCP Linux 명령 - Linux에서 파일을 안전하게 전송합니다의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

핫 AI 도구

Undress AI Tool
무료로 이미지를 벗다

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Stock Market GPT
더 현명한 결정을 위한 AI 기반 투자 연구

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

torunwindowsprogramsonlinux, trythesemethods : 1.usewinetodirectlyrun.exefiles.2.installplayOnlinuxForeAsierWinEmangement.3. setupaWindowsVirtualMachinewithVirtualbox.4.uselutristoinstallandrunwindowseAmesseamlessy.

ToIndifyyourgpuonlinux, trythesesteps : 1.RunlSpci | grep-i'3d \\ | vga'.2.usesudolshw-cdisplay.3. Check/Proc/Driver/nvi DIA/GPUS/FORNVIDIAGPUS.4.RUNNVIDIA-SMIIFNVIDIATOOLSAREINSTALLED.5.INSTALLANDUSEINXI-GFORDETAILED, FORMATTEDOUTPUT.

TOTAKESCREENSHOTSONLINUX : 1. useprtscnkeyforfullscreen, alt prtscnforactivewindow.2.usegnomescreenshottoolformoreoptions.3.usegnome-screenshotcommandinterminal.4.installandusscrotforlightweightscommand-linecapturing.

TolocateAprogram'SinstallationPathonlinux, 사용 : 1. whithProgram_nameforquickpath 기반 lookup.2.whereisprogram_nametofindbinaries, manpages, andsources

TOINSTALLVSCODEONLINUX, USETHEOFFICIALAPTREPOSOTIONFORAUTOMICOMICUTDATES, SNAPFORCROSS-DISTIOLCOMPATIBIED, ORAMANUALTARBALLFORFULLCONTROL.CHOOSEBARINGONOURSYSTEMANDNEDS.

ifyoufacedIsplayOrperformanceIssuesHennIviDriversOnlinux, followthesesteps : 1. indidentifyyUrgPumoDelusinglSpci.2.useYourDipribution'SpackAgemanagerToinStallTherecommendedDriver.3

toupdateMddriversonlinux, UseYourDiptribution'SpackagemanagerToinstallupdatedMesAdrivers, orinstallamdgpu-proforprofessionalneeds.ubuntuuserscanusethe "avstdeftDrivers"툴 피난처 스위치

Tofindaprocessidinlinlinux, 사용 : 1.psaux | greptolistandfilterprocesses.2.pgrepfordirectpidoutput.3.pidofforexactmatches.4.check/procdirectoriesmanually.5.usetoporhtopforreal-timemonitoringandsearch.
