Hello,
after some struggeling with wrapper v2 (not working for me) i have success with ssl+ssh via linux .
What is not working for me is on the windows side.
Connection via putty and certifactes works, plink seems ok and logging inside sshd says connection succesfull but then tortoise aborts with : Checkout from svn+ssh://rhodecode@svn.xxx.xx/Administration/Test, revision HEAD, Fully recursive, Externals included Unable to connect to a repository at URL 'svn+ssh://rhodecode@svn.xxx.xx/Administration/Test' Network connection closed unexpectedly
Rhodecode sshd says:
shd-1 | Accepted publickey for rhodecode from xxxx port 57536 ssh2: RSA SHA256:SFVZwvMtEkvm4X5a4DLs/dgCAngQke2LLZnbFCrEQjc
And as already said, linux works…
Anyone with success ? Any hints to debug ?
We use secured SVN connections with TortoiseSVN on RhodeCode 5.x, but essentially with HTTPS (without SSH keys). If I remember well, we used SVN+SSH at start but switched to HTTPS because it was simpler to manage (or maybe it didn’t work at all with SSH, just like you…).
Did you try to use the command-line SVN tool from Windows? Should probably be easier for debugging the client side.
So I’ve just made a test with the command line tool from a Windows client.
The first try timed out with the following error:
svn checkout svn+ssh://rhodecode@[..url..]
svn: E170013: Unable to connect to a repository at URL 'svn+ssh://rhodecode@[..url..]'
svn: E210002: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: E210002: Network connection closed unexpectedly
Then I’ve edited my SVN (client-side) configuration file to match the SSH port used on my RhodeCode install, something like ssh = TortoisePlink.exe -P 22 -ssh (I take 22 as an example, this is not the one we use )
The second try gives an new error message “No supported authentication methods available”:
just like if Pageant and TortoisePlink aren’t able to present my private key.
Now without TortoisePlink: ssh = C:/plink.exe -ssh -P 22
svn checkout svn+ssh://rhodecode@[..url..]
FATAL ERROR: No supported authentication methods available (server sent: publickey)
svn: E170013: Unable to connect to a repository at URL 'svn+ssh://rhodecode@[..url..]'
svn: E210002: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: E210002: Network connection closed unexpectedly
Looking up host "{{HOST}}" for SSH connection
Connecting to {{IP ADDR}} port {{PORT}}
We claim version: SSH-2.0-PuTTY_Release_0.80
Connected to {{IP ADDR}}
Remote version: SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.12
Using SSH protocol version 2
No GSSAPI security context available
Enabling strict key exchange semantics
Doing NTRU Prime / Curve25519 hybrid key exchange, using hash SHA-512 (unaccelerated)
Server also has ecdsa-sha2-nistp256/rsa-sha2-512/rsa-sha2-256 host keys, but we don't know any of them
Host key fingerprint is:
ssh-ed25519 255 SHA256:wb1paNKfC/kyUqqRalHraPAJI3Wgtddf2/GwNorAV+c
Initialised AES-256 SDCTR (AES-NI accelerated) outbound encryption
Initialised HMAC-SHA-256 (unaccelerated) outbound MAC algorithm
Initialised AES-256 SDCTR (AES-NI accelerated) inbound encryption
Initialised HMAC-SHA-256 (unaccelerated) inbound MAC algorithm
Pageant is running. Requesting keys.
Pageant has 2 SSH-2 keys
Using username "rhodecode".
Trying Pageant key #0
Server refused our key
Trying Pageant key #1
Server refused our key
No supported authentication methods available (server sent: publickey)
FATAL ERROR: No supported authentication methods available (server sent: publickey)
svn: E170013: Unable to connect to a repository at URL 'svn+ssh://rhodecode@[..url..]'
svn: E210002: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: E210002: Network connection closed unexpectedly
Looks like my SSH key is not accepted on the server side. I’ve added my public key from my profile page, but is it enough? I don’t know…
command line is working for me now with plink
I have to set it to:
Plink -i c:\users\pk1057\.ssh\rhodeocode.ppk -P 9022 -l rhodecode
I set it up in the tunnels section of TortoiseSVN, plink and TortoisePlink works
But TortoiseSVN gui says:
svnserve: E210004: Malformed network data
And GUI is improtant because the user are not capable to work with cli…
How have you submitted your public key to RhodeCode? I personally don’t understand why my private key is refused from the server.
But TortoiseSVN gui says:
svnserve: E210004: Malformed network data
Question: It seems to be a server message, so why don’t you get the same error from the command line with plink? Looks like TortoisePlink behaves differently.
I’m using the key generator inside rhodecode.
I only had problem with Putty and the conversion so i followed the link use legacy format and this key worked for me.
And yes plink and tortoiseplink seems to behave differently, but you can use both in the tunnels section…
Now the most important question is, why does tortoisegui not work, i have no clue.
I tried now a connection with netbeans svn.
When i use the stand JavalHL implementation it fails like Tortosie.
When i switch to use the slikSVN cli client it works.
The communcation fails when TortoiseSVN executes “exec svnserve -t” after connection, don’t know why it seems