SFTP Commands Not Working

Core FTP client questions and answers
Post Reply
ottengdj
Posts: 2
Joined: Mon Oct 27, 2014 1:26 pm

SFTP Commands Not Working

Post by ottengdj »

Hi

The SFTP opens accordingly with attached dos command and logs in with the username and password, but the log states access is denied with accessing the /uploaddir/, even though permissions are drwxrwx--. When trying on another PC the permission is denied on accessing the local dir e.g. ports\daily\daily

C:\Windows\""\coreftp.exe -S -O -site sitename -U C:\RemoteDir\*.xlsx -p "/uploaddir/" -FN Newname.xlsx

Any feedback on how to resolve this issue would be appreciated, as I have limited experience on working with the input dos commands.

Kind Regards
Gerhard
ForumAdmin
Site Admin
Posts: 1004
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

add the -log <logfile> parameter and post the log...
ottengdj
Posts: 2
Joined: Mon Oct 27, 2014 1:26 pm

Post by ottengdj »

Log attached:

We are using coreftp from a vapp launcher, I am also wondering if the
mapping might be giving issues.

10/30/14 08:25

Started on Thursday October 30, 2014 at 08:25:AMResolving ''.com...

''.com connecting...

SSH-2.0-mod_sftp/0.9.9

client -> aesserver -> aes''-rsaSending passwordPWD

Current directory is '/'

CWD /transactions

Transferred 3,820 bytes in 0.008 seconds

CWD /transactions/

permission denied...

[b]The other PC's log is similar (Different remoteDir):[/b]

Current directory is '/'

CWD \ports\Daily\Daily\
permission denied...
Transferred 1,586 bytes in 0.008 seconds
CWD /transactions
Transferred 3,820 bytes in 0.002 seconds
CWD /transactions/
permission denied...

[/img]
slink9
Posts: 2
Joined: Wed Nov 05, 2014 5:14 pm

Same Problem - any solution yet?

Post by slink9 »

I am having exactly the same problem. I am using Core FTP LE 2.2 and have set up a connection that works beautifully when working with this manually. I can connect to port 22 in SFTP and upload a file with no problem. I then try to set up a command line using the following command

[code]"c:\program files\coreftp\corecmd.exe" -OA -site WorkplaceAnswers -u c:\jcc.txt -p / -log xfer.log[/code]

and the log says

Started on Wednesday November 05, 2014 at 11:02:AMResolving sftp.workplaceanswers.com...
sftp.workplaceanswers.com [22] connecting...
SSH-2.0-Serv-U_11.1.0.7
client -> aes128server -> aes128--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--ssh-rsaOffering public keyPWD
Current directory is '/'
STOR /jcc.txt
Server error: No such file or folderjcc.txt - 0 bytes transferred in 0 seconds
Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 0
Total downloaded data: 0

I have tried this with the file in the root of C, the current directory and many other unsuccessful combinations. Any ideas or suggestions to get this automated?
slink9
Posts: 2
Joined: Wed Nov 05, 2014 5:14 pm

Fixed!!

Post by slink9 »

Out of frustration, I decided to download and update to the new version. I am now able to upload using the stored profile and all is well.
Post Reply