Become WinSCP power user

Today you will become WinSCP power user. I’m here to show you that WinSCP is really more powerful than Filezilla.

WinSCP is an open source free SFTP client, FTP client, WebDAV client and SCP client for Windows. Its main function is file transfer between a local and a remote computer. Beyond this, WinSCP offers scripting and basic file manager functionality.

Now go ahead to download page. I recommend you download portable version so you don’t need to install it each time you re-install windows.
When you run it, WinSCP will show Site Manager window. Because you run it first time, there are no site in the list so “new site” is active, you need to enter login details to start. You can choose FTP, SFTP or SCP protocol (SFTP is an upgraded version of SCP)

winscp site manager

winscp site manager

I choose SFTP protocal and enter root user which i can use to access my server via ssh (using putty). I will click save password to save my password and hit login to start connect to server.

winscp save login password

winscp save login password

Because it is my own server so i click yes to accept the key

add host key to cache

add host key to cache

If we look into Winscp folder, we will see there is a generated file “WinSCP.ini” to store settings and login details.
Backup it to backup your ftp login accounts.

winscp.ini

winscp.ini

. Now it shows both 2 panels, local and remote

winscp 2 panels

winscp 2 panels

If you don’t want 2 panels you can turn off local panel by go to Options > Preferences and click interface under Environment then choose explorer mode. You need to restart winscp to see it affect

preferences Interface

preferences Interface

Now it show only remote panel. Cool! But the right panel show large icons. I want to switch to details view so that i can see file and directory details so i go to View menu and click detail

switch to details view

switch to details view

Dont want to use internal editor? Add external editor and move it up. Go to Preferences – Editors to do this

preferences editor

preferences editor


Move binary transfer type to top.
transfer binary

transfer binary

Now time for the most important things – custom command. You can access custom commands by right clicking an item in right panel and choose custom command then the command you want to execute

custom commands

custom commands

You can add custom command by go to Preferences > Commands. There is an “Add” button there.

preferences commands

preferences commands

Now, i will share with you the commands created by myself:

  • Wget (download a file to your server)

    wget -q !?url:?!

  • chmod777

    chmod -R 777 “!”

  • Remove

    rm -rf !&

  • Zip

    zip -9 -r !.zip !

  • UnZip

    unzip “!”

  • Grep

    grep -rl “!?&Search for pattern:?!” *

  • check free dispace

    df -h

  • backup file (copy, add _ to file name)

    cp ! !_

Don't be shellfish...Share on FacebookShare on Google+Tweet about this on TwitterPin on Pinterest

Leave a Reply