Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
SSH Connection fails with upper quotation mark in passwords #261
Steps to reproduce this issue
If I want to use an upper quotation mark (") in the SSH Tunnel Settings I can't connect to the Server.
It should be possible to use upper quotation mark (") in the pasword of the SSH tunnel Settings.
correct escaping of passwords with upper quotation mark (")
Could you please give a hint on how I should escape double quotes? I find quite some references on the net, but highly insonsistent. Some say it has to be a duplicated double quote, some say it needs to be escaped by several (up to 3) backslashes, plus an additional double quote. I'm confused.
It looks like there is a function in Delphi that do the job (the escaping method in Delphi is something curious).
But the problem may be on the SSH client side, so you need to escape with a backslash (more commonly used approach) only if is using the same type of quotation mark for the string. For example:
Here you have an example for bash, the closest approach (I think) for the solution.
PS: Only for informational porpouses, in some special scenarios like handling with regular expressions, you would have to escape the backslash with the backslash too :) (only one backslash would escape the next character on the regular expression, and not act like a backslash character)