login about faq

SFTP put command is used for uploading files from local to remote directory.
SFTP>put filname The above command transfers the local file to remote location with same file name. But when we need to specify a target file name it doesnt work. All the documentation explains some thing like SFT> put sourefile targetfile But i couldn't specify the remote file name when i used put command. If anyone knows how to specify target file while transfering a file from local to SSH Tecta server please reply to this post.

Thanks in advance.

asked Aug 22 '12 at 08:13

Rajendran's gravatar image

Rajendran
6224


You can use "sput sourcefile destinationfile" or alternatively you can set the compatibility mode to "ftp":

sftp> set compatibility-mode=ftp
sftp> put sourcefile destinationfile

link

answered Aug 22 '12 at 09:15

Jan's gravatar image

Jan ♦
612

edited Aug 22 '12 at 09:16

It works perfectly.

Thank you very much

(Aug 30 '12 at 06:59) Rajendran Rajendran's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×63
×5

Asked: Aug 22 '12 at 08:13

Seen: 9,889 times

Last updated: Aug 30 '12 at 06:59

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.