Trees | Indices | Help |
|
---|
|
The sshconfig module contains code to configure Passwordless SSH. Example - A) Get the keypair to use using find_key_pair(..). B) Check the keypair is okay before local host ssh setup using check_key_pair(..). C) If the keypair is not okay, generate keypair in local system using configure_local_ssh_setup(). D) Setup passwordless SSH to desired host using install_remote_pubkey(..). from schrodinger.utils import sshconfig (priv_file, pub_file) = sshconfig.find_key_pair() pub_key = sshconfig.check_key_pair(priv_file, pub_file) if not pub_key: pub_key = sshconfig.configure_local_ssh_setup(priv_file, pub_file) sshconfig.install_remote_pubkey("bobio", "rajagopa", "blah-blah", pub_key)
|
|||
string |
|
||
|
|||
|
|||
bool |
|
||
tuple |
|
||
string |
|
||
string |
|
||
|
|||
|
|||
|
|
|||
GENERATE_KEY_BITS = 2048
|
|||
__package__ =
|
|
Get the public key from SSH keypair setup on your local machine.
|
Convert ppk to OpenSSH.
|
Convert OpenSSH to ppk.
|
Grep the given search string in provided filename.
|
Get the private and public key filename to use.
|
Check the given private and public key file to make sure they match. For Windows, the private key file is assumed to be in ppk understandable format.
|
Set up SSH key pair on your local machine. The private key is written to the file given. For windows this will be in plink understandable format and for non-windows this will be in OpenSSH format. And the public key is written in <priv_file without extension>.pub in OpenSSH format.
|
Setup passwordless ssh to the given remote host.
|
Caches particular host name. This is intended to be run after we already have set up public key on remote host.
|
If hostname is in cached registry, returns True. Only relevant to call on Windows.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 6 04:50:22 2015 | http://epydoc.sourceforge.net |