Re: keepalive's in SSH-1 and when to stop reading data



On May 30, 8:16 am, Simon Tatham <ana...@xxxxxxxxx> wrote:
yawnmoth <terra1...@xxxxxxxxx> wrote:
According to the specs, "[SSH_SMSG_EXITSTATUS is] the last message
sent by the server". As such, I have to wonder... is it possible to
execute two commands like this? eg. can you get the output for an ls
and then for a pwd without having to wait, unsure of whether or not
you've reached the end?

Probably not very easily, no. This is one of the inconvenient things
about SSH-1 which was rectified in SSH-2: in SSH-2 you can open
multiple session channels, sequentially or simultaneously or both,
in a single SSH connection.

You could do something really hideous involving running a helper
program on the server side which would run two commands and
packetise their output so you could separate it when it reached you,
but that would depend on having that program available on whatever
server you wanted. (Though you might get away with making it a
longish Perl one-liner...)

If you can possibly arrange to upgrade to SSH-2, that's probably a
better plan.
I'll probably do that soon enough. Thanks for the help! :D

.



Relevant Pages

  • RE: RPc server is unavailable since SP1
    ... After these commands run successfully, ... RPc server is unavailable since SP1 ... >> when the member server update certificate you get the error message RPC ... >> interface security settings before the installation of SP1 will be lost. ...
    (microsoft.public.windows.server.sbs)
  • Re: executing programs on a server
    ... i want to execute this on my server, ... Do you not have a shell login to the server, so you can run commands normally? ... A general Linux group most likely - comp.os.linux.misc? ...
    (comp.lang.php)
  • [NT] NetWin DMail Authentication Bypass (dlist.exe) and Format String (dsmtp.exe)
    ... either be used as a small personal mail server or as a 10 Million user ISP ... password hash) when sending the administrative commands. ... the DList server using a numeric hash of the administrative password. ...
    (Securiteam)
  • [NEWS] Netscape Publishing wp-force-auth Command
    ... Remote attackers can easily use the wp-force-auth command to perform brute ... connection with a directory server, which has valid users and passwords. ... Netscape Enterprise has a selection of ?wp-* (Web publishing) commands ...
    (Securiteam)
  • RE: copy permissions from one user to another?
    ... THIS STORED PROCEDURE GENERATES COMMANDS ... -- ADD USER TO SERVER ... -- CREATE TABLE TO HOLD LIST OF USERS IN CURRENT DATABASE ... -- SET COMMAND TO FIND USER PERMISSIONS HAS IN CURRENT DATABASE ...
    (microsoft.public.sqlserver.security)