aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
AgeCommit message (Collapse)Author
2012-10-19ssh: Modernized test suites to use only Common TestIngela 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)
2012-10-03ssh: Make test case platform independantIngela Anderton Andin
The test case interrupted_send did not work on all platforms. Also ct-ify the test suite
2012-10-03ssh: ssh_connection:channel_data() and send_eof() now return {error, closed} ↵Daniel Goertzen
for closed or invalid channels. ssh_connection:handle_msg(#ssh_msg_channel_close...) will now cause any send() that was in progress to immediately return {error,closed}.
2012-10-03ssh: Ensure that all data is sent before ssh:send returns.Daniel Goertzen
2012-10-03ssh: add test suite for testing channel send/receive behavior.Daniel Goertzen
2012-10-01Merge branch 'dg/keyboard_interactive'Henrik Nord
* dg/keyboard_interactive: fix typo in keyboard-interactive string OTP-10456
2012-09-24ssh: Will not hang if you attempt to send empty binaryIngela Anderton Andin
2012-09-07fix typo in keyboard-interactive stringDaniel Goertzen
2012-09-04Merge tag 'OTP_R15B02'Björn-Egil Dahlberg
The R15B02 release
2012-09-03Prepare releaseOTP_R15B02Erlang/OTP
2012-08-31Merge branch 'maint'Björn-Egil Dahlberg
Conflicts: lib/diameter/autoconf/vxworks/sed.general xcomp/README.md
2012-08-31Update copyright yearsBjörn-Egil Dahlberg
2012-08-30Merge remote branch 'upstream/maint'Ingela Anderton Andin
* upstream/maint: ssh: Increase robustness inets: Dialyzer spec fixes
2012-08-29ssh: Increase robustnessIngela Anderton Andin
If a line of single line of the authorized_key file och known_hosts file is incorrectly formated ignore it.
2012-08-29Merge remote branch 'upstream/maint'Ingela Anderton Andin
* upstream/maint: ssh: Prepare for release ssh: Correct error handling of ssh connect ssh: Use the correct channel id when adjusting the channel window
2012-08-29Merge branch 'ia/ssh/prepare-for-release' into maintIngela Anderton Andin
* ia/ssh/prepare-for-release: ssh: Prepare for release
2012-08-29Merge branch 'ia/ssh/connection-start-error-handling' into maintIngela Anderton Andin
* ia/ssh/connection-start-error-handling: ssh: Correct error handling of ssh connect
2012-08-28ssh: Prepare for releaseIngela Anderton Andin
2012-08-28ssh: Correct error handling of ssh connectIngela Anderton Andin
2012-08-28ssh: Use the correct channel id when adjusting the channel windowIngela Anderton Andin
2012-08-28Merge remote branch 'upstream/maint'Ingela Anderton Andin
* upstream/maint: ssh: Correct dialyzer specs
2012-08-27ssh: Correct dialyzer specsIngela Anderton Andin
2012-08-27Merge branch 'maint'Fredrik Gustafsson
2012-08-27Merge branch 'sze/ssh-auth_methods/OTP-10224' into maintFredrik Gustafsson
* sze/ssh-auth_methods/OTP-10224: Corrected some documentation according to original SSH: Make "auth_methods" server option re-usable
2012-08-27Merge branch 'maint'Lukas Larsson
* maint: Bumped version nr ssl & public_key: Workaround that some certificates encode countryname as utf8 and close down gracefully if other ASN-1 errors occur. Add more cross reference links to ct docs Remove config option from common_test args Update user config to use nested tuple keys Allow mixed IPv4 and IPv6 addresses to sctp_bindx Add checks for in6addr_any and in6addr_loopback Fix SCTP multihoming observer: fix app file (Noticed-by: Motiejus Jakstys) Fix lib/src/test/ssh_basic_SUITE.erl to fix IPv6 option typos Prevent index from being corrupted if a nonexistent item is deleted Add tests showing that trying to delete non-existing object may corrupt the table index Fix Table Viewer search crash on new|changed|deleted rows Escape control characters in Table Viewer Fix Table Viewer crash after a 'Found' -> 'Not found' search sequence inet_drv.c: Set sockaddr lengths in inet_set_[f]address Conflicts: erts/preloaded/ebin/prim_inet.beam
2012-08-22Corrected some documentation according to originalFredrik Gustafsson
2012-08-01SSH: Make "auth_methods" server option re-usableStefan Zegenhagen
The 'auth_methods' option is used by the server side of the SSH code to tell a connecting SSH client about the authentication methods that are supported by the server. The code still extracts and handles the 'auth_methods' option from Opts in appropriate places, but the Opts checking code in ssh.erl didn't allow that option to be specified.
2012-07-19ssh: Remove VxWorksBjörn-Egil Dahlberg
2012-06-25Fix lib/src/test/ssh_basic_SUITE.erl to fix IPv6 option typosKenji Rikitake
Fixed incorrect option "ipv6_disable" to "ipv6_disabled" as documented in the ssh manual.
2012-06-12Merge branch 'ia/ssh/missing-reason-in-catch-exit/OTP-10112' into maintIngela Anderton Andin
* ia/ssh/missing-reason-in-catch-exit/OTP-10112: Improved handling of multiple closes
2012-06-05Update to work with whitespace in exec pathLukas Larsson
OTP-10106 OTP-10107
2012-06-01Improved handling of multiple closesIngela Anderton Andin
exit:{normal} -> exit:{normal, _} this typo could sometimes cause a crash when trying to close a channel that was already closed.
2012-05-04The channel id in a channel failure message, sent to the peer, is now in all ↵Ingela Anderton Andin
cases the remote channel id
2012-04-27ssh: Fix parallel make for behavioursBjörn-Egil Dahlberg
2012-04-24Merge branch 'ia/ssh/options-check-OTP-10061' into maintIngela Anderton Andin
* ia/ssh/options-check-OTP-10061: Corrected ssh option handling
2012-04-24Corrected ssh option handlingIngela Anderton Andin
The option ip_v6_disabled and the undocumented option exec was incorrectly handled by the option checking code. There where two options for allowing user interaction one documented and one undocumented, they where merge to to be the documented one. For backwards compatibility the undocumented one is transformed to the documented one in the option checking code.
2012-04-20Avoid sending two ssh close messagesIngela Anderton Andin
2012-04-01Prepare releaseOTP_R15B01Erlang/OTP
2012-03-30Update copyright yearsBjörn-Egil Dahlberg
2012-03-22ssh:close/1 will no longer crash if ssl manager already happens to haveIngela Anderton Andin
been terminated. The function ssh_connection_manager:call now handles that exit reason may be shutdown.
2012-03-22Merge branch 'ia/ssh/prepare-for-release' into maintIngela Anderton Andin
* ia/ssh/prepare-for-release: Prepare for release
2012-03-21Prepare for releaseIngela Anderton Andin
Supervisor tree changed so can not do soft upgrade
2012-03-06Skip set_attributes test on windows due to known erts bug inIngela Anderton Andin
file:read_file_info/1
2012-03-01sftp daemon generates file handles correctIngela Anderton Andin
Also always run ssh_sftp_SUITE against own daemon as well as openssh if existing. Corrected links test case and found that openssh has a known bug that swaps the create link arguments. Created separate ticket (OTP-9951) to deal with this.
2012-02-28Merge branch 'ia/ssh/currently-supported-doc/OTP-8109' into maintIngela Anderton Andin
* ia/ssh/currently-supported-doc/OTP-8109: Document currently supported algorithms
2012-02-28Prevent client hanging. (OTP-8111)Ingela Anderton Andin
Restored supervisor tree so that error propagation will work as intended, although connection processes are set to temporary, instead of permanent with restart times set to 0, and termination of the connection subtree is initiated by a temporary process spawned by ssh_connection_managers terminate. This is done to avoid unwanted supervisor reports. Pherhaps we need some new supervisor functionality.
2012-02-21Added checks of API inputIngela Anderton Andin
2012-02-20Improve check so that we will not try to read ssh packet length indicator if ↵Ingela Anderton Andin
not sure we have enough data. OTP-8380
2012-02-17Document currently supported algorithmsIngela Anderton Andin