I am getting JSch authentication failure when my password contains characters like *, !. May I know if there is a list of characters that need to be escaped and what's the correct way to escape them?
For !, I tried password = password.replace("!", "^!")
in scala and it works, but same doesn't work for *. If anyone faced similar issue or can guide me in this regard, it will be helpful.
Thanks!
I figured it out. This works if I use URLEncoder to encode the password and decoder to decode it again.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.