Download file SCP/SFTP dengan winscp command line

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.

Share |

Portfolio

www.wearnespc.comwww.solper.comwww.autojaya.comwww.intisolar.comsmartprint.co.idwww.ottopharm.comoliser.co.idAnd More ....

Livechat

  • Sonny
    Marketing

  • Aris G
    Support

  • Agus
    Support

  • Kurnianto
    Support

  • Eko P
    Designer

  • Andreas
    Designer

  • LiveZilla Live Help

Address

PT. Proweb Indonesia
Perkantoran Duta Merlin No F4
Jl. Gadjah Mada 3-5
Jakarta Pusat
GPS: S 6o 09' 58.1", E 106o 49' 3.3"

 

Phone : 021 - 2636 3170
    021 - 3377 0050
     
Mobile : 0856 - 9360 1378
    0812 - 806 2772
    0857 - 1586 8992
    0816 - 180 8005
     
Blackberry PIN : 23096502
     
Fax : 021 - 633 5765
     
Web : www.proweb.co.id