i trying ssh remote server , execute simple command. using libssh library , following code, ssh_key pkey; ssh_session session; ssh_channel channel; int rc = ssh_pki_import_privkey_file(pc_private_key_file, null, null, null, &pkey); char buffer[1024]; unsigned int nbytes; printf("session...\n"); session = ssh_new(); if (session == null) exit(-1); ssh_options_set(session, ssh_options_host, pc_host); ssh_options_set(session, ssh_options_user, pc_user); ssh_options_set(session, ssh_options_port, &pc_port); ssh_options_set(session, ssh_options_log_verbosity, &pc_verbosity); printf("connecting...\n"); rc = ssh_connect(session); if (rc != ssh_ok) error(session); printf("channel...\n"); channel = ssh_channel_new(session); if (channel == null) exit(-1); printf("opening...\n"); rc = ssh_channel_open_session(channel); if (rc != ssh_ok) error(session); printf("executing remote command...\n"); rc = ssh_channel_request_exec(ch...