KiTTY icon indicating copy to clipboard operation
KiTTY copied to clipboard

No pwfile option

Open angrybb opened this issue 1 year ago • 1 comments

Putty supports -pwfile for passing ssh password, kitty does not. Do you plan to add this option?

My real problem is that "kitty -pw", "kitty -pass", "putty -pw" or genpass.exe all seems to ignore or "lose" double quotes from ssh password and then ssh login for kitty and putty does not work and for genpass.exe it generates false password hash. This happens when i start them from windows command prompt or batch file and when ssh password has double quotes(") in it. Using -pwfile and putty it works, but i need this in kitty. Maybe it is cmd.exe problem, i did tried different escaping methods but none worked.

EDIT: I did managed to find right escape for double quotes(") so that -pw option works. Just put whole password in double quotes and escape every double quote in password with back slash(). For example: kitty_portable.exe user@host -pw "absd^`G5#8\"u:D5d3T/\"&AB/uHL@+:ZUqF3$O2C?s1a"

angrybb avatar Jul 20 '23 10:07 angrybb

@angrybb If your password contains special characters, I think I can help. Refer to https://github.com/1Remote/1Remote/issues/673#issuecomment-2153617336, when starting the CLI, you need to change the + in your password to %2B.

VShawn avatar Jun 11 '24 08:06 VShawn