sftp is a program that allows you to transfer files between two machines, similarly to WinSCP. However, unlike WinSCP, it is a command-line program (i.e. it does not have a graphical interface with menus, etc.). Here is how you use sftp to transfer files from a lab machine to rynite and the other way around:
cd
command
to switch to this directory.sftp rynite
at the command prompt, type in your
password when askedcd public_html
to get to your public_html
directory. If you want to get to a subdirectory of public_html, say,
lab3, you can type in cd public_html/lab3
instead. To
create a new directory, type mkdir lab3
(or any name you
want to give to the new directory), followed by cd lab3
to get into the new directory. put
filename
(where you replace filename by the
actual file name). get
filename
pwd | shows your current directory on rynite |
lpwd | shows your current directory on the lab machine |
cd |
changes your current directory on rynite (cd .. brings
you one level up)
|
lcd |
changes your current directory on the lab machine (lcd .. brings
you one level up)
|
ls | shows your files in the current directory on rynite |
lls | shows your files in the current directory on the lab machine |
quit or exit | exits sftp |
This page is a part of CSci 1101 course web site.