Executing local command once connected via ssh

Art Martz
2014-08-21
2014-08-21
  • Art Martz

    Art Martz - 2014-08-21

    I'm looking for a linux terminal emulator that I can use to ssh to a database environment, run apps in the database environment, and have a pgm written in the database cause the terminal emulator to execute a local command on the local client. I have used windows terminal emulators that have an escape sequence that accomplishes this, and would like to do the same from linux, using meld. I would like print an Esc sequence the would kick off a meld compare, something like EscSeq "meld fileA fileB". Or something along those lines. Would RoxTerm, or any other linux terminal emulator, give me this capability?

     
  • Tony Houghton

    Tony Houghton - 2014-08-21

    I don't think so. ROXTerm uses vte, the same as gnome-terminal, which is based on traditional Unix terminal emulation. Allowing a server to run commands on the client would probably be considered highly insecure.

     
    • Art Martz

      Art Martz - 2014-08-21

      Perhaps. But when you are automating certain manual functions, you could make the arguement that it's much more secure to automate than to continue with an error-prone manual process. But thanks for the response!

       
  • Tony Houghton

    Tony Houghton - 2014-08-21

    Can you get the database to run any command on the server and can you set up a ssh server on the client? Then the database could easily run a command on the client with a reverse ssh connection, but it wouldn't run in the same terminal of course. It might even be possible to use the ssh connection two-way somehow.

     
    • Art Martz

      Art Martz - 2014-08-21

      I have done a reverse ssh connection in the past at other jobs, but here I don't have total control of this server, and the client is my personal laptop. So no, I don't intend to allow the server to ssh into my laptop. Now that would be insecure!

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks