Theme:
  

KiTTY : pscp and WinSCP integration

Last modification : 2013/06/06 10:46

To send a file into the running session with pscp.exe you have to select the "Send with pscp" item from the main menu, or press CTRL+F3. The file will be sent into the root of the account defined in the session. Binary pscp.exe should be in the same directory as kitty.exe. It is possible to define another path where the pscp.exe is located by setting the following entries in the kitty.ini file:
[KiTTY]
PSCPPath=C:\Program Files\PuTTY\kscp.exe
pscpport=22

You can also send a file or a directory with a simple drag'n drop into the session window.

On UNIX system, to easily get a file, it is also possible to create this build-in ksh function:
get() { printf "\033]0;__pw:"`pwd`"\007" ; 
for file in $* ; do printf "\033]0;__rv:"${file}"\007" ; done ; 
printf "\033]0;__ti\007" ; }



To start a WinSCP session (if WinSCP is installed), in the same KiTTY session, you have to select the "Start WinSCP" item in the main menu, or press SHIFT+F3. It is possible to define another path where the WinSCP program is located by setting the following entries in the kitty.ini file:.
[KiTTY]
WinSCPPath=C:\Program Files\WinSCP\WinSCP.exe


On UNIX system it is possible to start a WinSCP session directly into the current directory with this build-in ksh function:
winscp() { printf "\033]0;__ws:"`pwd`"\007" ; printf "\033]0;__ti\007" ; }
or this bash function:
winscp() { echo -ne "\033];__ws:${PWD}\007"; }



Back to home