Re: sftp syantax to copy file from box A to box B
- From: Bit Twister <BitTwister@xxxxxxxxxxxxxxxx>
- Date: Sat, 25 Feb 2006 08:12:44 -0600
On 25 Feb 2006 05:38:55 -0800, 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.
Next login to sftp try
help
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
So, you want to
get filename_here
The syntax I am using is:
sftp userName@hostName
1) Do I have to follow it with a file name?
No. Go back to
man sftp
and read the INTERACTIVE COMMANDS section.
2) Can't I just log into Box A with the command above and do an ls to
see a list of available files?
Once you are logged in ls should work.
3) If line two is correct, what command do I use to grab my file?
scp fileName
Check the INTERACTIVE COMMANDS for get/put/mget/mput
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
Hmmm, guessing, boxb does not know the node.domain.boxa
Try using sftp anymouse@boxa_ip_address_here
Then after entering anymouse's password on boxa
get pine-4.64-1.i386.rpm
bye
.
- 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: Re: sftp syantax to copy file from box A to box B
- Next by Date: Re: Grub boots from command line but not menu
- Previous by thread: Re: sftp syantax to copy file from box A to box B
- Index(es):
Relevant Pages
|