Re: sftp syantax to copy file from box A to box B
- From: "Nico Kadel-Garcia" <nkadel@xxxxxxxxxxx>
- Date: Sat, 25 Feb 2006 08:51:13 -0500
anymouse wrote:
Having trouble trying to use sftp and I think the problem may be my
syntax.
I am new (go easy, trying to learn). I looked on the man page but I
don't think I have mastered the format of the syntax example given.
I am in the directory on Box B where I want to copy the file to.
The file I want to copy from is on box A
The syntax I am using is:
sftp userName@hostName
Practical (but fictional) example:
sftp joe@xxxxxxxxxxxxxxx
1) Do I have to follow it with a file name?
2) Can't I just log into Box A with the command above and do an ls to
see a list of available files?
3) If line two is correct, what command do I use to grab my file?
scp fileName
The error I get is:
sftp myUserName@xxxxxxxxxxxxxxxxxxxx:pine-4.64-1.i386.rpm
Connecting to DomainNameOnBoxA.com...
ssh: DomainNameOnBoxA.com: Temporary failure in name resolution
Couldn't read packet: Connection reset by peer
You don't. You use this:
scp myUserName@xxxxxxxxxxxxxxxxxxxx:pine-4.64-1.i386.rpm .
Or this:
sftp myUserName@xxxxxxxxxxxxxxxxxxxx:
and play with the interactive FTP like session.
I still think sftp is fairly silly: it has a bit of user interface available
that scp does not, but it doesn't properly support symlinks or hardlinks.
But just about every system that supports sftp supports scp.
BTW: Since I don't know how to just upload a file to Box B from my own
computer (Box B is offsite and I am work from office or home computer
depending on where I am)...
Start out with scp: work with sftp after you've gone through the manual
pages in more detail.
.
- References:
- sftp syantax to copy file from box A to box B
- From: anymouse
- sftp syantax to copy file from box A to box B
- Prev by Date: sftp syantax to copy file from box A to box B
- Next by Date: Re: sftp syantax to copy file from box A to box B
- Previous by thread: sftp syantax to copy file from box A to box B
- Next by thread: Re: sftp syantax to copy file from box A to box B
- Index(es):
Relevant Pages
|