Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

sheauyun

Re: Tunnel Host Key

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! :D

martin wrote:

Thanks for your report.

This bug is being tracked already:
https://winscp.net/tracker/948

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

Re: Tunnel Host Key

Thanks for your report.

This bug is being tracked already:
https://winscp.net/tracker/948

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

No one can help with this question? I had been messing with this command for two days now without solution :(
sheauyun

Tunnel Host Key

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