LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-10-2017, 01:46 AM   #1
VenkatesanKalambur
LQ Newbie
 
Registered: Aug 2017
Posts: 1

Rep: Reputation: Disabled
Bug/Query in OpenSSH 6.6


Hi Team,

We have a java application where we use to send set of commands to a remote target host using SSH session STDIN (output stream) and use to get the response back from the SSH server via STDOUT/STDERR (input stream).

We use to open a SSH session using a SSH user, switch to root user, execute the list of commands and close the same session. Same will be repeated many times with different set of commands.

What we are seeing randomly is,
Our application sends the whole command and the echo response from SSH server STDOUT is not complete, partial text/command is lost. But the same set is executed successfully when we tried re-executing it again.

And we observe this issue only in the below version of OpenSSH on different platform,
1. SUSE 11: OpenSSH_6.6.1p1, OpenSSL 0.9.8j-fips 07 Jan 2009
2. RHEL 7.3: OpenSSH_6.6.1p1, OpenSSL 1.0.1e-fips 11 Feb 2013

FYI, we have not encountered this issue in the below OpenSSH versions on different platforms.
1. SUSE 12: OpenSSH_7.2p2, OpenSSL 1.0.2j-fips 26 Sep 2016
2. RHEL 6.5: OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010


When I explored, got something related to partial output getting lost fixed in OpenSSH 6.7 (Not sure whether it is same or not)

“ssh-add(1): Make stdout line-buffered; saves partial output getting lost when ssh-add fatal()s part-way through”

Ref: https://www.openssh.com/txt/release-6.7


Could you please share your valuable comments to identify the root cause and the permanent solution for this.


Thanks in advance.

Regards,
Venkatesan V
 
Old 08-10-2017, 06:04 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I would say upgrade to the latest version. If that doesn't solve the problem, then report it as a bug.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: OpenSSH 7.5 Has Security Fixes, Removes OpenSSL 1.0 Support for Portable OpenSSH LXer Syndicated Linux News 0 03-21-2017 04:11 PM
Bug in openssh-server-4.3p2-72 ?? Linux_Kidd Linux - Software 6 10-07-2011 04:06 PM
QUERY: CD changing bug fixed? kevingpo Fedora 0 06-10-2005 10:54 AM
OpenSSH ssh-agent problems. Bug? darklogik_org Slackware 2 02-10-2004 05:25 PM
OpenSSH-3.7 released (fixes Buffer Management bug) unSpawn Linux - Security 8 09-23-2003 11:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration