Command line sftp issue

Report client bugs
Locked
sweetantiangel
Posts: 1
Joined: Mon Mar 26, 2018 1:21 pm

Command line sftp issue

Post by sweetantiangel »

Hello,

We are migrating from Windows Server 2008 R2, to a Windows 2012 R2. We are noticing a difference in the command line behavior of CoreFTP when transferring a file to a sftp.

On 2008 R2 this command works and transfers a file:
C:\"Progra~1\CoreFTP\coreftp.exe" -O -SSH -u "\\testserver\adhoc\test.txt" "sftp://username:pwd@sftpsite.com/Out/addfolder/" -s -nopasswd

On 2012 R2 this command opens up the GUI, then prompts for a username/password and then does nothing.
C:\"Progra~2\CoreFTP\coreftp.exe" -O -SSH -u "\\testserver\adhoc\test.txt" "sftp://username:pwd@sftpsite.com/Out/addfolder/" -s -nopasswd

Does any one know why the different behavior for the same command and same SFTP site? Any way to resolve this?

We are using CoreFTP LE 2.2 version on both the servers.

Thanks!
ForumAdmin
Site Admin
Posts: 979
Joined: Mon Mar 24, 2003 4:37 am

Re: Command line sftp issue

Post by ForumAdmin »

For exact behavior use the same build as the previous machine (download page - archive). The command line is updated regularly so there can be slight differences especially with URLs.

Recommend putting the URL as the 1rst parameter in any command line as it does not have any parameters. Other commands can take 2-3 parameters in some cases so the URL can mistakenly be read as a parameter causing it to be ignored or misinterpreted.
Locked