Embedding public key as string in Paramiko Application
问题 I'm trying to create a single file executable in python and using paramiko for my SSH. I need to eliminate external files such as public key files and try to go for embedded strings. I tried this solution but it's not working for me.. How do I accomplish this? Thanks. 回答1: The solution you mentioned: key = paramiko.RSAKey(data=base64.b64decode('AAblablabla...')) works fine however it may be inconvenient to store the key in base64 format. The following code shows how to use the key stored in