Displaying 3 results from an estimated 3 matches for "ssh_cmsg_exec_shell".
2008 Jun 20
0
Is it possible to execute commands without allocate pty?
Hi,
I am currently implementing SSH ver1 client for my school work and testing
it with OpenSSH servers. Unfortunately I cannot execute commands after
succesful login without allocate pty. My client send SSH_CMSG_EXEC_SHELL
packet on server, but dont receive any answer. According RFC defined SSH1,
server should send SSH_SMSG_SUCCESS or SSH_SMSG_FAILURE message. So I
tried send SSH_CMSG_EXEC_CMD with command, but after executing command
server send EXIT_STATUS message. I dont understand why, because RFC
docum...
2001 Jan 12
0
Socket options not properly set for ssh and sshd.
...ive(int interactive, int keepalives);
+void packet_set_interactive(int interactive);
/* Returns true if the current connection is interactive. */
int packet_is_interactive(void);
--- sv0/session.c Fri Oct 27 20:19:58 2000
+++ session.c Tue Jan 2 16:40:45 2001
@@ -405,8 +405,7 @@
case SSH_CMSG_EXEC_SHELL:
case SSH_CMSG_EXEC_CMD:
/* Set interactive/non-interactive mode. */
- packet_set_interactive(have_pty || s->display != NULL,
- options.keepalives);
+ packet_set_interactive(have_pty || s->display != NULL);
if (type == SSH_CMSG_EXEC_CMD) {
command = packet_get_stri...
2002 Jan 23
1
Fix AFS and Kerberos interaction
...if defined(AFS) && defined(KRB4)
case SSH_CMSG_HAVE_AFS_TOKEN:
if (!options.afs_token_passing || !k_hasafs()) {
verbose("AFS token passing disabled.");
@@ -372,7 +372,7 @@
xfree(token);
}
break;
-#endif /* AFS */
+#endif /* AFS && KRB4 */
case SSH_CMSG_EXEC_SHELL:
case SSH_CMSG_EXEC_CMD:
@@ -1370,6 +1370,10 @@
krb_afslog(cell, 0);
krb_afslog(0, 0);
+#ifdef KRB5
+ krb5_afslog(s->authctxt->krb5_ctx, s->authctxt->krb5_fwd_ccache,
+ NULL, NULL);
+#endif
}
#endif /* AFS */
--- ssh.c 2002/01/23 12:28:10 1.1
+++ ssh.c 2...