scp/sftp

Shawn Bayern (shawn.bayern@yale.edu)
Fri, 8 Jan 1999 13:24:21 -0500 (EST)

On Fri, 8 Jan 1999, amnion wrote:

> Second of all as far as secure file transfer you can try scp a secure
> copy using ssh. I think there must be another way to adapt ftp to use
> ssh but I'm not sure.

Right. Look into ssh's -L and -R (respectively, local and remote) port
forwarding switches. Ssh has the ability to forward arbitrary ports
securely.

There's also sftp, which (I think) comes with ssh2. I haven't used it,
but I'm pretty sure its interface is similar to FTP, so if you prefer
ftp's interactive interface, it might be worth looking at.

On Fri, 8 Jan 1999, dave caputo wrote:

> scp ...
>
> basic usage is
> scp user@source:files user@dest:dir
>
> and substitute just the files or dir if one is local ...

That might be a bit misleading; the second argument is more generally any
file (which might be a directory if you're copying multiple files).

So the more general syntax is

scp user@source:file(s) user@dest:file

It's like cp. In other words,

scp myfile powered.cs:newfile

would be a valid command.

Shawn