Topic "Tunnel Host Key"

Author Message
sheauyun
[View user's profile]

Joined: 2012-12-27
Posts: 12
Hi there,

I am quite new with the WinSCP .Net - I am trying to tunnel with WinSCP .net after failing the WinSCP batch for ssh tunnel.

I am able to SSH tunnel with WinSCP .net now but, I have problem for tunnel authentication. I had try all the following to add the tunnel host key but none of it go thru:
(I need to mention here that I am using WinSCP version: 5.1.2.2816; WinSCP.dll version: 1.0.3.2816)

.AddRawSettings("TunnelSshHostKey", "ssh-rsa 1040 9e:26:55:a0:a6:83:1b:99:65:20:fa:19:0b:79:bc:dc")
.AddRawSettings("TunnelSshHostKeyFingerprint", "ssh-rsa 1040 9e:26:55:a0:a6:83:1b:99:65:20:fa:19:0b:79:bc:dc")
.AddRawSettings("TunnelHostKeyFingerprint", "ssh-rsa 1040 9e:26:55:a0:a6:83:1b:99:65:20:fa:19:0b:79:bc:dc")
.AddRawSettings("TunnelHostKey", "ssh-rsa 1040 9e:26:55:a0:a6:83:1b:99:65:20:fa:19:0b:79:bc:dc")

----------------------------------------------------------------------------------------------------------------------------------------------
Below is the WinSCP log:

. 2012-12-29 12:48:58.765 Opening tunnel.
. 2012-12-29 12:48:58.765 Autoselected tunnel local port number 50000
. 2012-12-29 12:48:58.765 [Tunnel] Looking up host "172.16.1.23"
. 2012-12-29 12:48:58.765 [Tunnel] Connecting to 172.16.1.23 port 22
. 2012-12-29 12:48:58.765 [Tunnel] Server version: SSH-2.0-dropbear_0.50
. 2012-12-29 12:48:58.765 [Tunnel] Using SSH protocol version 2
. 2012-12-29 12:48:58.765 [Tunnel] We claim version: SSH-2.0-WinSCP_release_5.1.2
. 2012-12-29 12:48:58.765 [Tunnel] Using Diffie-Hellman with standard group "group1"
. 2012-12-29 12:48:58.765 [Tunnel] Doing Diffie-Hellman key exchange with hash SHA-1
. 2012-12-29 12:48:58.859 [Tunnel] Verifying host key rsa2 0x10001,0xa7d158950332d996235f428c8340df6f089cdaa629236f2180694123f17b7a406d4c88d25511f75419556fb8e88d5325e11e8aadfc22c123cecdc6b561bbcebe2739fb6c6ac7b5be5f1f0ef06fc055d5cda68378eae3fed28c8dff4b46b44e283525557e63bc64ce15bc3bb9528237ef04142a175c25bf21dab1d584446fa8dde4dd with fingerprint ssh-rsa 1040 9e:26:55:a0:a6:83:1b:99:65:20:fa:19:0b:79:bc:dc
. 2012-12-29 12:48:58.859 Asking user:
. 2012-12-29 12:48:58.859 The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it is.
. 2012-12-29 12:48:58.859
. 2012-12-29 12:48:58.859 The server's rsa2 key fingerprint is:
. 2012-12-29 12:48:58.859 ssh-rsa 1040 9e:26:55:a0:a6:83:1b:99:65:20:fa:19:0b:79:bc:dc
. 2012-12-29 12:48:58.859
. 2012-12-29 12:48:58.859 If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.
. 2012-12-29 12:48:58.859
. 2012-12-29 12:48:58.859 Continue connecting and add host key to the cache? ()
. 2012-12-29 12:48:58.859 [Tunnel] Closing connection.
. 2012-12-29 12:48:58.859 [Tunnel] Sending special code: 12

Thanks,
SY
Advertisements
sheauyun
[View user's profile]

Joined: 2012-12-27
Posts: 12
No one can help with this question? I had been messing with this command for two days now without solution Sad
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27059
Location: Prague, Czechia
Thanks for your report.

This bug is being tracked already:
https://winscp.net/tracker/show_bug.cgi?id=948

I have sent you an email with a dev version of WinSCP to address you have used to register on this forum.
sheauyun
[View user's profile]

Joined: 2012-12-27
Posts: 12
Prikryl,

Thank you so much! I had just tested this out and it works great!

Thank you again! This had really helps me a lot! Very Happy

martin wrote:
Thanks for your report.

This bug is being tracked already:
https://winscp.net/tracker/show_bug.cgi?id=948

I have sent you an email with a dev version of WinSCP to address you have used to register on this forum.
Advertisements

You can post new topics in this forum

Search

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