b>j)΄!Pԫ&;"kB޶}pSVT(wę!j x;-m@JnQ+պכ7MajfJͱ4jѲ撆RxZMz7vIW/dٞТזcZM~ji ߒsQzԠDW3Den"M+/B:-uIJ7j委9p='mANޭ=/B:-n&nUfqxZM~c Ϲ+,&ᾺܢF[(1*" ϒ"Jԧ<;b" "jܢF[x ,!q қ*]/؝27SMcs"ޭDQ/应ܢF_! :s" 7`F+SVTn"IJnQ/应B 4 wD"IJ׭-`S9DrjiEJ߅gJ应矁[xZM~n"IB؃!'Тѕ+(mIKʭ/|ϐܢF[xZMzG %嬩/c[[ Download file from server using SSH - Mkyong.com

Download file from server using SSH

Normally, you use Secure copy or SCP to download a file from another server via SSH connection. For example,


scp username@remotehost:remoteFileToDownload localFolderNameToSaveTheFile

1. SCP Examples

1.1 Download File From Server
Example to download a log file (hc.audit.log) from server (198.58.x.x), into your current local folder.


scp mkyong@198.58.x.x:/var/log/tomcat7/hc.audit.log .

1.2 Upload File To Server
Example to upload a hc.war file to server (198.58.x.x) ~/uploads folder.


scp hc.war mkyong@198.58.x.x:/uploads
Note
For detail example, please visit this SCP command examples

Done.

mkyong

Founder of Mkyong.com, passionate Java and open-source technologies. If you enjoy my tutorials, consider making a donation to these charities.

0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments