4. SCP and SFTP

The SSH suite of utilities contain two different clients for file transfer, one akin to rcp and the other to ftp.

4.1. scp

Usage of scp is similar to ssh:

  local> scp -l remoteuser remoteserver.sub.net:remotefile localfile
or
  local> scp localfile remoteuser@remoteserver.sub.net:
N.B. In the second case the colon is necessary otherwise a local file called remoteuser@remoteserver.sub.net will be created.

4.2. sftp

Usage of sftp is similar to that of ftp, i.e., upon authentication a restricted shell is obtained and the usual commands (get, put, ls, etc) are available:

  local> sftp remoteuser@remoteserver.sub.net
  .
  .
  Password:
  remote>                               # ftp-restricted shell ("quit" to exit)

...previousup (conts)next...



About this document:

Produced from the SGML: /home/mc/public_html/_ssh/_reml_grp/ssh.reml
On: 4/4/2006 at 17:51:25
Options: reml2 -i noindex -l long -o html -p multiple