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
SFTP Commands Not Working
-
- Site Admin
- Posts: 1004
- Joined: Mon Mar 24, 2003 4:37 am
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]
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]
Same Problem - any solution yet?
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?
[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?