zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: ZSH User List <zsh-users@sunsite.dk>
Subject: Re: interactive shell with ssh
Date: Mon, 4 Aug 2003 16:30:53 +0000	[thread overview]
Message-ID: <1030804163053.ZM16321@candle.brasslantern.com> (raw)
In-Reply-To: <20030804111148.GA5224@spiegl.de>

On Aug 4,  1:11pm, Andy Spiegl wrote:
}
} Is there any way to execute commands on remote hosts allowing user
} interaction and everything - just as if I would first login with an
} interactive shell and then execute these commands???

To expand somewhat on Dan Nelson's answer:

You can execute _one_ command on a remote host that way with

  ssh -e none -t remoteuser@remote.host "remotecommand ..."

If what you have is a whole series of commands to automate "as if" you
had typed them, you have the problem of needing to know exactly when a
user interaction will occur -- there aren't separate input streams for
commands vs. user input.

The closest you might get is to assemble a shell script file of the
commands to be executed, "scp" that to the remote host, then "ssh -t"
to the same host to run the script as the single remote command.  But
that introduces the need to be security conscious that the file you
execute is really the same one you scp'd.


      parent reply	other threads:[~2003-08-04 16:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-04 11:11 Andy Spiegl
2003-08-04 15:36 ` [6433] " Danek Duvall
2003-08-04 15:42 ` Dan Nelson
2003-08-04 16:03   ` Andy Spiegl
2003-08-04 16:30 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1030804163053.ZM16321@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).