1、上傳
scp -P 22 -r ?/temp ?username@host:/usr/temp
備注:P(大寫(xiě))是端口,r是遞歸拷貝
2、下載
scp -P 22 ?-r username@host:/usr/temp /temp
scp -P username@host:/user/temp/a.txt ?/temp/a.txt
1、上傳
scp -P 22 -r ?/temp ?username@host:/usr/temp
備注:P(大寫(xiě))是端口,r是遞歸拷貝
2、下載
scp -P 22 ?-r username@host:/usr/temp /temp
scp -P username@host:/user/temp/a.txt ?/temp/a.txt