Topic "What is host key and how can i get that"

Author Message
ykmohank
[View user's profile]

Joined: 2013-01-06
Posts: 6
Hi,

I have to automate a task of sftp few files using winscp.
While looking at the command syntax it was mentioned that i need to have host key to achieve this.
Can someone please help me on how can i get this one.
Advertisements
geraldb
[View user's profile]

Joined: 2012-12-11
Posts: 3
Location: near Mainz
Try to connect server using WinSCP.exe as graphical interface with SFTP-protocol and port 22. You don't have to use correct login data and after this scan generated log file. This contains a line like
Code:
Host key fingerprint is:


and the following line contains host key, e.g.
Code:
ssh-dss 1024 12:34:56:78:90:ab:cd:ef:12:34:56:78:90:ab:cd:ef


The host key are 16 blocks separated by : in example before
Code:
12:34:56:78:90:ab:cd:ef:12:34:56:78:90:ab:cd:ef
ykmohank
[View user's profile]

Joined: 2013-01-06
Posts: 6
Hi,
Thanks for you reply,But can you please guide me about the location where i can see the generated log file.
And once i got the host key what i need to do to automate my task of sending files to the targeted server.

Please help me i am very new to WinSCP and SFTP.
geraldb
[View user's profile]

Joined: 2012-12-11
Posts: 3
Location: near Mainz
ykmohank wrote:
the location where i can see the generated log file

Standard is path of used .exe file.

ykmohank wrote:
what i need to do to automate my task of sending files to the targeted server.

You have to generate a script and call this...
read help https://winscp.net/eng/docs/scripting
and examples https://winscp.net/eng/docs/scripting#example
_________________
best wishes

Gerald
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please read FAQ:
https://winscp.net/eng/docs/faq_hostkey
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