sftp syantax to copy file from box A to box B



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

No doubt there probably is an easier way to do this...
....and some will chuckle while for others it will bring back early
memories of when they first got started :-)

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)...

....I uploaded the latest copy of PICO onto Box A (its managed and Box B
is my first box where I have full root control) - So I am also open to
any security warnings you may have for a newbie.

Thanks to anyone who is able to help me make some baby steps.
Art

.



Relevant Pages

  • Re: sftp syantax to copy file from box A to box B
    ... don't think I have mastered the format of the syntax example given. ... sftp joe@xxxxxxxxxxxxxxx ... scp myUserName@xxxxxxxxxxxxxxxxxxxx:pine-4.64-1.i386.rpm. ... computer (Box B is offsite and I am work from office or home computer ...
    (comp.os.linux.setup)
  • Re: sftp syantax to copy file from box A to box B
    ... don't think I have mastered the format of the syntax example given. ... Next login to sftp try ... Check the INTERACTIVE COMMANDS for get/put/mget/mput ...
    (comp.os.linux.setup)
  • Re: SSH / SFTP from one machine to another
    ... Can anybody tell me the syntax by which I would SFTP a complete ... file hierarchy from one Ubuntu machine to another? ...
    (Ubuntu)
  • RE: SSH / SFTP from one machine to another
    ... SSH / SFTP from one machine to another ... Can anybody tell me the syntax by which I would SFTP a ... For the command syntaxes, let me to point you to the related man pages. ... man sftp and man ftp ...
    (Ubuntu)
  • Re: sftp syntax
    ... > I used the syntax: sftp user@biz.xyz.com ... > The administrator on the other side asked one of our users to use the ... The script still works. ...
    (comp.unix.shell)