Add API for generate ssh_key without interact with terminal.