๐Ÿ‘ป OS & Tools/Ubuntu

์›๊ฒฉ ์„œ๋ฒ„์— ํŒŒ์ผ ์ „์†ก(scp)

๋ณต๋งŒ 2020. 1. 7. 22:07

์ฐธ๊ณ  : https://harryp.tistory.com/168

 

usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]

           [-l limit] [-o ssh_option] [-P port] [-S program]

           [[user@]host1:]file1 ... [[user@]host2:]file2

 

cp ๋ช…๋ น์–ด์™€ ์œ ์‚ฌ.

ํŒŒ์ผ๊ฒฝ๋กœ ์•ž์— ์ถœ๋ฐœ์ง€/๋„์ฐฉ์ง€ ์ •๋ณด๋งŒ ๋ถ™์Œ. ์ถœ๋ฐœ์ง€/๋„์ฐฉ์ง€๊ฐ€ ๋กœ์ปฌ์ผ์‹œ ์ƒ๋žต.

 

1) ๋กœ์ปฌ-->์„œ๋ฒ„

scp [ํŒŒ์ผ๊ฒฝ๋กœ] [๋„์ฐฉ์ง€์ •๋ณด(id@ip)]:[ํŒŒ์ผ๊ฒฝ๋กœ]

 

2) ์„œ๋ฒ„-->๋กœ์ปฌ

scp [์ถœ๋ฐœ์ง€์ •๋ณด(id@ip)]:[ํŒŒ์ผ๊ฒฝ๋กœ] [ํŒŒ์ผ๊ฒฝ๋กœ]
๋ฐ˜์‘ํ˜•