To give you the best experience, this site uses cookies. Continuing to use 9bis.net means you agree to our use of cookies.
 

Theme:
English version Russian version Version française Nederlandse versie Versión española Version portuguese Version polonaise Italian version Versiunea româna
  KiTTY News

KiTTY : pscp and WinSCP integration

Last modification : 2015/03/11 21:36

KiTTY web site



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

WinSCPPath variable can also point to a .BAT Windows script file. It can be useful to pass specific setting to WinSCP binary. For example, if you need to log all WinSCP sessions:
@ECHO OFF
START "C:\Program Files\WinSCP\WinSCP.exe" /log="C:\winscp.log" "%1" "%2" "%3" "%4" "%5" "%6" "%7" "%8" "%9"



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