aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_cli.erl
AgeCommit message (Collapse)Author
2015-06-18Change license text to APLv2Bruce Yinhe
2014-10-20Merge branch 'lukas/erts/non-blocking-shell'Lukas Larsson
* lukas/erts/non-blocking-shell: Fix io:columns/0 timeout when invoked via user kernel,ssh: Add synchronous user_drv protocol erts: Make writing to non-tty fds non-blocking erts: Make tty driver non-blocking
2014-10-16kernel,ssh: Add synchronous user_drv protocolLukas Larsson
Added a put_chars_sync to the protocol that can be used to talk to user_drv and made group use it. This is needed in order to guarantee that bytes has been pushed to the tty port when doing something like this: io:format("halting\n"),erlang:halt(0). Before this change the halting message could be lost in the message queue of the user_drv process, this is no longer possible. This commit also fixes ssh_cli as that plugs itself in as a user_drv process. OTP-12240
2014-07-23Fix SSH CLI when using custom "shell" optionMichael K. Schmidt
Also address compatibility issue with PuTTY
2014-01-28ssh: The server ssh_cli does not delay tty_geometry requests in case no tty ↵Hans Nilsson
is allocated
2014-01-10fix calculation of variableHenrik Nord
thanks to Alexander Demidenko
2013-12-03ssh: Fix long cli delays. (Part of OTP-11339, OTP-10953)Hans Nilsson
A step in fixing the tickets.
2013-11-13ssh: Simplify handling of connection attributes (e.i. user and sockname)Ingela Anderton Andin
OTP-11296
2013-11-13ssh: Merge connection_manager and connection_handler processesIngela Anderton Andin
Also start adding dialyzer specs and removing dead code
2013-05-06Make ssh_cli.erl handle <CTRL>+CStefan Zegenhagen
Dear all, I've found that ssh_cli.erl does not scan the input received from the remote for occurrences of <CTRL>+C to signal the user's interrupt requests to the group_leader of the CLI session. The patch attached to this e-mail fixes the issue. Kind regards, -- Dr. Stefan Zegenhagen arcutronix GmbH Garbsener Landstr. 10 30419 Hannover Germany Tel: +49 511 277-2734 Fax: +49 511 277-2709 Email: [email protected] Web: www.arcutronix.com *Synchronize the Ethernet* General Managers: Dipl. Ing. Juergen Schroeder, Dr. Josef Gfrerer - Legal Form: GmbH, Registered office: Hannover, HRB 202442, Amtsgericht Hannover; Ust-Id: DE257551767. Please consider the environment before printing this message. >From f1d056ed1bf419677098cdc57bc7ce8a327e6b43 Mon Sep 17 00:00:00 2001 From: Stefan Zegenhagen <[email protected]> Date: Mon, 6 May 2013 14:29:45 +0200 Subject: [PATCH] [SSH-CLI] properly handle <CTRL>+C as shell interrupt In ssh_cli.erl, check for the presence of <CTRL>+C in data received from the remote. If detected, use the established mechanism (send an 'interrupt' exit signal to the group_leader) to signal an interrupt to the shell.
2013-04-15ssh: unicode adaptionsFredrik Gustafsson
2013-04-05ssh: If not valid expression, rather than generate a error, try to use the cmd.Fredrik Gustafsson
2013-01-25ssh: Fix dialyzer and doc warningsIngela Anderton Andin
2012-10-05Improve interoperability with SSH clientsStefan Zegenhagen
This patch fixes a few problems of the SSH shell server that affect the interoperability with SSH clients in widespread use. First problem is that, whenever a channel_request message is received with want_reply=true, the reply ends up being sent to the servers channel id, not the clients channel id. This causes the client to terminate the connection. The easiest solution to the problem appears to be a new function in ssh_connection_manager.erl that translates the servers channel id before sending the reply (in the same manner as other functions do it). Second problem is in ssh_cli.erl. When an SSH client sends a window_change request between PTY allocation and starting the shell (which appears to happen with some clients), ssh_cli.erl crashes because #state.buf is yet 'undefined'. Allocating an empty buffer at PTY allocation time solves the problem. Affected SSH clients: - all clients based on SSH-2.0-TrileadSSH2Java_213 (problem #1) - SSH Term Pro (problem #2)
2011-04-27OTP-9232:Niclas Eklund
A memory leak has been fixed. I.e. per terminated connection the size of a pid and the length of a user name string was not cleared.
2011-04-20Added deletion of clients to be used when a session is terminated.Niclas Eklund
2010-09-03Merge branch 'nick/ssh/fix-process-leak/OTP-8807' into devnick
* nick/ssh/fix-process-leak/OTP-8807: Fix race condition when terminating a connection. fix process leak in ssh_system_sup (dynamicaly created childs where not cleaned up)
2010-09-02Fix race condition when terminating a connection.nick
2010-08-20ssh: Patch 1119Niclas Eklund
OTP-8550 The function ssh:connect/4 was not exported. OTP-8644 Aligned error message with used version (SSH_FX_FAILURE vs SSH_FX_NOT_A_DIRECTORY, the latter introduced in version 6). OTP-8645 Resolved race condition when another connection is started before a channel is opened in the first connection. OTP-8535 The configuration parameter ip_v6_disabled is now available, which makes it possible for the user to alter the IP version SSH shall use. OTP-8534 The ssh_connection:send operation now accepts infinity as timeout. OTP-8524 The connection handler now include stack traces when a channel message is not handled correctly.
2010-06-02Fixing compiler warnings regarding max/2Niclas Eklund
2010-04-21Changes after ssh-1.1.8Niclas Eklund
2010-04-21New branch for ssh-2.0 and laterNiclas Eklund
2010-04-14Removed call to the deprecated module ssh_cmNiclas Eklund
2009-11-20The R13B03 release.OTP_R13B03Erlang/OTP