Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
September 25, 2003, 7:12 pm
rate this thread
I'm trying to ssh from a windows computer to a linux computer with a
command-line command like this:
ssh -l "user-name" "linux-machine-ip" "command"
where "command" = a single command that I would like to run on the
linux machine and then ssh is to exit. However, the command I would
like to run requires itself to run in a terminal (I have set this
command up so that it does what I want it to and exits w/o prompt or
user intervention). The form of the ssh call above works for simple
things like "cp", "mv", etc., but is there any way to trick these
commands into believing that they are being called from a terminal? I
don't really know how ssh does this, but if anyone can help me, that
would be great.
- Richard E. Silverman
September 26, 2003, 1:53 am
Re: sshing and automatically calling command problem
% man ssh
-t Force pseudo-tty allocation. This can be used to execute arbi-
trary screen-based programs on a remote machine, which can be
very useful, e.g., when implementing menu services. Multiple -t
options force tty allocation, even if ssh has no local tty.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum