plink: unknown option "-q" error in Cruise Control - putty

I am getting the following error on configuring project on cruise control
Error Log
plink: unknown option "-q"
svn: E210002: Unable to connect to a repository at URL 'svn+ssh://<uname>#<ip>/subversion/<folder1>/mconsole'
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
<Update> failed.
I tried editing %USERPROFILE%\AppData\Roaming\Subversion\config and removing "-q" option from ssh = $SVN_SSH ssh but still its giving the same error.
My SVN Version :
TortoiseSVN 1.7.10, Build 23359 - 64 Bit , 2012/10/08 11:46:26
Subversion 1.7.7
I have copied plink.exe from my putty folder to tortoise folded and renamed it to ssh.exe to solve ssh+svn issue
Can someone please help me to sort out the issue.

Related

Is there a way to make Git change its ncat command in `git push`?

Upon running this command: $ git push origin DC_PLATFORMAPP-1571
I get this error:
C:\Program Files (x86)\Nmap\ncat.exe: illegal option -- X
Ncat: Try `--help' or man(1) ncat for more information, usage options and help. QUITTING.
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
fatal: Could not read from remote repository.
This has only been happening since installing nmap for windows from here: https://nmap.org/download.html
Is there a way to make git change it's ncat command built into git push?
The error occurs in Git bash. On windows CMD, this error occurs:
error: src refspec DC_PLATFORMAPP-1517 does not match any
error: failed to push some refs to '...'
error: src refspec DC_PLATFORMAPP-1517 does not match any
error: failed to push some refs to '...'

rsync does not work in Visual Studio 2019

I have created a simple CMake project from the template provided in visual studio 2019. It connects to remote Linux server and errors out while copying a file using "rsync" with the following error.
Could not start the 'rsync' command on the remote host, please install it using your system package manager. Please see https://aka.ms/AA23jat for troubleshooting.
The log shows the error details as following.
23:03:25.2045083 [Error, Thread 88] liblinux.IO.Rsync: liblinux.IO.RsyncException: Could not create daemon configuration file on remote device ---> liblinux.IO.RsyncException: echo config error: and error output: Unmatched ".
Please note: rsync is installed on the remote Linux server and tested it with and without ssh its working.
When I tried to test rsync which is provided by Visual Studio under "C:\Apps\VS2019Pro\Common7\IDE\VC\Linux\bin\rsync\rsync.exe" to sync/copy a file to remote linux server it fails with following error.
dup() in/out/err failed
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.3]
Any help on this will be appreciated.
Rsync speaks the rsync protocol, which is a client server protocol.
The client you are using needs to talk to a server, which is the rsync binary on the remote server, which doesn't seem to be here.
The message is pretty clear:
Could not start the 'rsync' command on the remote host, please install it using your system package manager. Please see https://aka.ms/AA23jat for troubleshooting.
You really need to have rsync on your remote server.
I installed rsync from source on the target using the default settings which installed it at /usr/local/bin/rsync. Apparently the path Visual Studio expects is /usr/bin. I created a symbolic link with the command 'ln -s which rsync /usr/bin/rsync'

Git with putty on windows

When attempting to push / pull over ssh, git is failing with the following error:
"C:\Program Files\Git\bin\git.exe" push -u --recurse-submodules=check -progress "testremote" project:project
Using username "git-receive-pack 'ec2-user".
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Done
The remote "testremote" is setup as "ssh://ec2-user#sweeb.net:gittest.git" and I'm using an existing keypair that I have used with PuTTY before without issue.
Pageant is running, with my key loaded.
I think the issue is the line "Using username "git-receive-pack 'ec2-user"." - I assumed git's commands were breaking on windows thanks to the space in "Program Files" so I've tried to surround everything with double quotes, but that doesn't seem to be working. Has anyone seen anything like this before?
Windows vars:
GIT_SSH=C:\PuTTY\plink.exe
PATH=[...];"C:\Program Files\Git\cmd";"C:\Program Files\Git\libexec\git-core\";"C:\Program Files\Git\bin\"
This was solved by removing "ssh://", that's implicit in Git Extensions apparently.

Setup git over ssh in Rubymine on Windows

I found a lot of threads about how to setup git over ssh with msysgit and putty/plink, but rubymine seems to use its own git and ssh implementation (see error message below).
Currently I have putty, msysgit, TortoiseGit and rubymine installed. My repository has two remotes:
[remote "origin"]
url = ssh://mygituser#255.255.255.255:1234/path/to/repo.git
[remote "origin_putty"]
url = putty-alias:path/to/repo.git
puttykeyfile = path/to/my/putty/keyfile.ppk
In putty the connection "putty-alias" is defined with the same user, host and port used in origin and also sets the ssh key again (might not be necessary). Using TortoiseGit to push to origin_putty works fine since it loads the putty ssh key and prompts for my passphrase. However, when I'm trying to use origin from rubymine it prompts for the password of mygituser since there is no keyfile defined.
I already tried the following solutions
Setting GIT_SSH to plink, running pageant and loading the key there (no change)
using the puttykeyfile line in the definition of origin (no change)
using origin_putty from rubymine (does not resolve putty-alias)
The reason I think rubymine uses its own ssh implementation is the error message I get on an unsuccessful authentication:
SSH: authentication methods: [publickey, keyboard-interactive, password] last successful method:
java.io.IOException: Authentication failed:
at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:280)
at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:155)
at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:135)
fatal: The remote end hung up unexpectedly
You're right: by default RubyMine uses trilead-ssh2 Java library, and is not aware about Putty settings.
You may switch to using the native SSH in the Settings | Version Control | Git | SSH Executable | Native
But note, that it doesn't work well with passphrases, so if your private key is passphrase protected, you have to use pageant or similar software.

hg clone using mercurial throws "getaddrinfo failed" error (windows 7)

I have created a public repository on bit bucket website. I can run the clone command from outside the office network (LAN).
But it is not working inside the office network. I am suspecting it is to do with firewall or proxy settings. I can access the URL from browser window (IE9/Chrome).
Please help in fixing this problem. Thanks.
Command:
hg clone https://bitbucket.org/gbsandeep/test2
abort: error: getaddrinfo failed
PS: I went through other posts but it did not help.
Sounds like you might need to tell Mercurial what your proxy settings are. First hit for "mercurial proxy":
http://www.markhneedham.com/blog/2009/05/13/mercurial-pulling-from-behind-a-proxy/
If you need to figure out what settings to use, you should probably look at what your IE settings are, e.g. by going to the Internet Properties | Connections | LAN Settings dialog.
If you find yourself on this page because you've hit a getaddr error when using the hg-git plugin with a username, it is likely that you've hit the Fails with username in URL (getaddreinfo failed) bug.
Thus:
$ hg clone https://foo#stash/
abort: error: getaddrinfo failed
$ hg clone https://stash/
http authorization required for http://stash.....
realm: Atlassian Stash
user: ...
(Doesn't solve the original user's issue, but can be a cause of the same symptoms).
Just remove the http_proxy environment variable. (worked for me, after of 5 hours of headache).
Pls check whether you can access the repository directly first. e.g from web browser
For me, the solution was to set http_proxy env var.
In PyCharm mercurial clone dialog that was resolved by enabling the corporate vpn and setting up automatically detecting the proxy in Win 10. However, the PyCharm throwed some new exception like this:
6:03 PM Clone failed
Clone from your url here failed.
** Unknown exception encountered with possibly-broken third-party extension hg4ideapromptextension
** which supports versions unknown of Mercurial.
** Please disable hg4ideapromptextension and try your action again.
** If that fixes the bug please report it to the extension author.
** Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 4.7.1)
** Extensions loaded: strip, mq, hg4ideapromptextension
Traceback (most recent call last):
File "hg", line 41, in

Resources