Monday, December 1, 2008

Use sftp - putty psftpl

Need to copy a bunch of files to Samba linux dev server, which includes a DML script file for building up database, and a bunch of Cakephp model files corresponding to db schema, for some reason it can not be done with sharing from Windows network. ftp is actually a better and clean way to do it. Worth to mention is that the Linux server only accepts sftp - secure ftp access with SSH.


Greg introduced putty, a freeware but good. it is a package of tools. For me, only need psftp.exe - file transfer tool.


Here are the commands with the tool. No wonder they are regular ftp commands.


open - start a session
quit
help

cd - change remote directory
lcd - change local directory

get/put transfer a file
reget/reput

the following commands for remote use:
dir - list remote files
chmod
del
mkdir
ren - rename

to do the same thing to local target:
! - run local Win command

No comments: