Topic "Unable to connect SFTP server"

Author Message
rahul.kolhe22
[View user's profile]

Joined: 2015-10-23
Posts: 3
Hi,

I have created a program which creates the WinSCP script. as shown below

Code:

option batch abort
option confirm off
option transfer binary
open sftp://USERNAME@example.com -privatekey=C:\temp\workarea\SFTP\Auth.ppk -passphrase="pass1234"
get -preservetime -resumesupport=on /home/USERNAME/test.txt C:\temp\workarea\SFTP\test.txt
exit


I execute this program by from other application as below

Code:

C:\Program Files (x86)\WinSCP\WinSCP.com /script=C:\temp\workarea\SFTP\WinSCPScript.txt /hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"  /log=C:\temp\workarea\SFTP\log.txt /loglevel=*


But I am facing problem opening connection to the server. I have attached the log file.
Can anyone please help me to know how can I approach to solve this issue.
After reading the log file I thought it is some issue with the hostkey, but after checking with administrator I found it is same.

Thank you. Kind Regards, Rahul
log.txt (5.78 KB) [Download]

Description: (none)

rahul.kolhe22
[View user's profile]

Joined: 2015-10-23
Posts: 3
Hi,

The issue is resolved.
By mistake I was trying to mention the hostkey in winscp command. I tried using hostkey switch in open command and it worked.

Thank you. Smile
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License