Ada suatu keadaan kita akan mendownload file yang tidak bisa dijangkau dengan FTP biasa. Sebagai contoh download hasil backup cpanel. Untuk kasus seperti ini kita harus memakai SCP yang memakai SSH dalam melakukan download file.

Sebagai langkah awal silahkan masuk ke www.winscp.net untuk mendownload program winscp. Setelah diinstall, silahkan masuk ke DOS, kemudan masuk ke directory berisi program itu dan jalankan winscp, kemudian lakukan interaksi seperti contoh berikut :

D:\proweb\backup>winscp
winscp> open sftp://namauser@domainanda
Searching for host…
Connecting to host…
Authenticating…
Using username “namauser”.
Password:
Authenticated.
Starting the session…
Reading remote directory…
Session started.
Active session: [1] namauser@domainanda
winscp> cd public_html
/home/namauser/public_html
winscp> get index.php
index.php                 |          0 KiB |    0.0 KiB/s | ascii  | 100%

Untuk melihat command line yang ada bisa diketikkan help:
winscp> help
call     Executes arbitrary remote command
cd       Changes remote working directory
chmod    Changes permissions of remote file
close    Closes session
exit     Closes all sessions and terminates the program
get      Downloads file from remote directory to local directory
help     Displays help
keepuptodate Continuously reflects changes in local directory on remote one
lcd      Changes local working directory
lls      Lists the contents of local directory
ln       Creates remote symbolic link
lpwd     Prints local working directory
ls       Lists the contents of remote directory
mkdir    Creates remote directory
mv       Moves or renames remote file
open     Connects to server
option   Sets or shows value of script options
put      Uploads file from local directory to remote directory
pwd      Prints remote working directory
rm       Removes remote file
rmdir    Removes remote directory
session  Lists connected sessions or selects active session
synchronize Synchronizes remote directory with local one

Kunjungi www.proweb.co.id untuk menambah wawasan anda.

Download file SCP/SFTP dengan winscp command line
× Ada yang dapat saya bantu ? Available on SundayMondayTuesdayWednesdayThursdayFridaySaturday