Re: Question about ssh no login
- From: Darren Salt <news@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 28 Apr 2007 01:20:00 +0100
I demand that sk8terg1rl may or may not have written...
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?
You don't.
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.
Wrong - the rest of the script will be executed on the local machine when
that ssh instance is terminated.
You mean this:
ssh remotemachine@xxxxxxxxxxxxxxx ls
--
| Darren Salt | linux or ds at | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Output *more* particulate pollutants. BUFFER AGAINST GLOBAL WARMING.
Confucius say: He who post large binary, get flamed.
.
- Prev by Date: Re: Question about ssh no login
- Next by Date: Re: are .rpm and .deb inherently broken?
- Previous by thread: Re: Question about ssh no login
- Next by thread: Re: Question about ssh no login
- Index(es):
Relevant Pages
|