def testKeygen(self): if cuisine.ssh_keygen(USER): print "SSH keys already there" else: print "SSH keys created"
def create_hdfs_sshkey(): with mode_sudo(): ssh_keygen(user='******',keytype='rsa') key = sudo('cat /usr/lib/hadoop/.ssh/id_rsa.pub') return key
def testKeygen( self ): if cuisine.ssh_keygen(USER): print "SSH keys already there" else: print "SSH keys created"