Re: Question about ssh no login
- From: Unruh <unruh-spam@xxxxxxxxxxxxxx>
- Date: Sat, 28 Apr 2007 00:45:39 GMT
sk8terg1rl <sk8terg1rl_2006@xxxxxxxxxxx> writes:
Hi group,
I've implemented ssh no logins between 2 computers. Basically it
involved generating a public & private key pair with no passphrase and
appending the public keys to "authorized_hosts2" in the ".ssh" folder
for either machine.
How do I run commands in the remote machine from the local machine's
bash?
I tried a simple script on the local machine containing "ssh
remotemachine@xxxxxxxxxxxxxxx; ls; exit". It logs in fine but ignores
the rest of the script.
Wwhat rest of the script. YOu told it to run the command
ssh remotemachine@xxxxxxxxxxxxxxx
then when that command is finished to run ls and then when that finishes
exit. Both of those are run on the local machine.
Try
ssh remotemachine@xxxxxxxxxxxxxxx ls
which will do what you want.
Any input please?
Thanks everyone,
skate xx
.
- Prev by Date: Re: are .rpm and .deb inherently broken?
- Next by Date: Re: Question about ssh no login
- Previous by thread: Re: Question about ssh no login
- Next by thread: Re: Question about ssh no login
- Index(es):
Relevant Pages
|