problem uploading file via command line over sftp

Core FTP client questions and answers
Post Reply
jacken
Posts: 11
Joined: Wed May 14, 2008 11:53 pm

problem uploading file via command line over sftp

Post by jacken »

I'm using the latest build, 1568. I issue the following command:

coreftp -site Test_Site -u c:\ken\cpsa.jpg -log c:\ken\log.txt

Below is the log. The file was never uploaded. The program would prompt me that the file exist and ask me if I want to overwrite it. I clicked overwrite. First of all, the file does not exist on the server, so the program should not have prompted me if I want to overwrite or not. Then the upload process failed. Upon reading the log file, I've noticed that it has this command:

STOR /filescpsa.jpg

cpsa.jpg is the file which I want to upload. Shouldn't the command be something like STOR /files/cpsa.jpg instead? Also, is it possible to disable the CWD command? The server is giving a permission denied on this command.

Perhaps I did something wrong? Any help would be great. Thanks.

Here is the log file:

Started on Wednesday June 04, 2008 at 16:58:PMResolving mailserver...
something.something.net connecting...
SSH-1.99-OpenSSH_4.3p2-hpn
client -> aes
server -> aes
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
ssh-rsa
PWD
Current directory is '/files'
Keep alive off...CWD
permission denied...
Error loading directory...File exists, prompting user...
cpsa.jpg overwritten...
STOR /filescpsa.jpg
Server error: No such file or foldercpsa.jpg - 0 bytes transferred
Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 0
Total downloaded data: 0
jacken
Posts: 11
Joined: Wed May 14, 2008 11:53 pm

Post by jacken »

Nevermind. I figure it out. I just need to include the -p option and it works fine.

Thanks.
Post Reply