cyd01 / KiTTY

:computer: KiTTY, a free telnet/ssh client for Windows
https://www.9bis.com/kitty
Other
1.55k stars 132 forks source link

No pwfile option #502

Open angrybb opened 1 year ago

angrybb commented 1 year ago

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"

VShawn commented 1 month ago

@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.