using unix ssh & sftp Hunter, 1/26/04 [more]
Most UNIX operating systems come with an ssh and sftp client. To use SSH, open up a terminal, and type into the prompt:
hblanks@terra:~$ ssh hblanks@artifex.org
If this is your first time connecting, you may get a message asking you if you want to trust the remote host's key. Say yes, and enter your password. That's all there is to it.
Transferring files is almost as easy -- you may choose from either sftp, a command line FTP-like client, or else scp, a sophisticated version of the normal UNIX cp program. To use sftp, type into the prompt:
hblanks@terra:~$ sftp hblanks@artifex.org
and once you're logged in, you can get and put files just like with a normal FTP client. Alternatively, you can use SFTP to transfer one group of files or directories to/from a remote server. An example would be:
hblanks@terra:~$ scp -r -C public_html famine.ocf.berkeley.edu:
which would copy my public_html directory, recursively and with Compression, over to the server famine.ocf.berkeley.edu. For more information on scp, sftp, or ssh, check the manual pages, which should also be available on most UNIX systems by typing:
hblanks@terra:~$ man ssh
and so on. Have a happy time out in UNIX country now -HB.