search for: ssh_cmsg_exec_cmd

Displaying 5 results from an estimated 5 matches for "ssh_cmsg_exec_cmd".

2003 May 06
1
logging command line execs
Hey folks, As part of a local change, we like to authlog the commands executed via command line, i.e.: ssh user at host "somecommand" And I was able to modify session.c like so: -------------------------------------- case SSH_CMSG_EXEC_CMD: if (type == SSH_CMSG_EXEC_CMD) { command = packet_get_string(&dlen); debug("Exec command '%.500s'", command); /* LOCAL CHANGE: We log this */...
2001 Jan 12
0
Socket options not properly set for ssh and sshd.
...alives); +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_string(&dlen); --- sv0/ssh....
2008 Jun 20
0
Is it possible to execute commands without allocate pty?
...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 document define EXEC_CMD message this way: "Starts executing the given command, and enters interactive session mode." Would you please explain me why OpenSSH server doesnt...
2002 Jan 23
1
Fix AFS and Kerberos interaction
...fined(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 2002/01/23 12:30:58 @@ -159,...
2002 May 09
0
functions : server_input_channel_req userauth_pubkey
...if (auth_get_socket_name()) @@ -200,7 +200,7 @@ * are requested, etc. */ static void - -do_authenticated1(Authctxt *authctxt) +do_authenticated1(Authctxt *authctxt, const char *realname) { Session *s; char *command; @@ -352,10 +352,10 @@ if (type == SSH_CMSG_EXEC_CMD) { command = packet_get_string(&dlen); debug("Exec command '%.500s'", command); - - do_exec(s, command); + do_exec(s, command, realname);...