1. Local download remote files
scp user @ ip: / source file absolute address of the destination file
#scp root@ip:/home/log.log ./
2.scp download remote files with password
#sudo apt-get install sshpass
#sshpass -p password scp user @ ip: / source file destination file
3.sftp remote file upload and download
log in
sftp user@ip
Upload
put local file remote file storage address address
download
get remote file local file storage address Address
Sftp operating environment in general and it is similar to the operation of ftp, LS, RM, mkdir, the dir, pwd, and other instructions are to operate a distal end, if the local operation, simply applied to said instruction 'l' becomes: lls, lcd, lpwd the like .