You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added Paramiko as required package in Pipfile in f8d5f9b
Next step is to create a private RSA key and store it in the database using this snippet:
fromparamikoimportRSAKeyfromioimportStringIO# Generate key and make a string out of itkey=RSAKey.generate(4096)
pkey=StringIO()
key.write_private_key(pkey)
pkey_string=pkey.getvalue() # Store in DB# Make a RSA key out of stringkey2=RSAKey.from_private_key(pkey_string)
public_b64=key2.get_base64() # This part for authorized_keys file
Right now code in
aplibvirt.py
is:So it's ready to consume different URI.
What needs to be done:
The text was updated successfully, but these errors were encountered: