Re: Question about ssh no login



On 2007-04-28, sk8terg1rl <sk8terg1rl_2006@xxxxxxxxxxx> wrote:
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.

Any input please?

Of course, if all you're wanting to do on the remote machine
is one command, then just do

ssh remotemachine@xxxxxxxxxxxxxxx ls

--
Robert Riches
spamtrap42@xxxxxxxxxxx
(Yes, that is one of my email addresses.)
.



Relevant Pages

  • Re: Remote Execution Through FTP
    ... > I need to send some file from my local machine to a remote machine ... > generation mechanism in SSH. ... then you can script this quite easily using public key's to authenticate. ... Make sure the permissions on the .ssh directory and all the files in it are ...
    (comp.unix.admin)
  • Re: Remote Execution Through FTP
    ... >> I need to send some file from my local machine to a remote machine ... >> All these operations i have to do in script. ... >> generation mechanism in SSH. ... > the authorized_keys file in the .ssh directory. ...
    (comp.unix.admin)
  • Re: Remote Execution Through FTP
    ... >>> I need to send some file from my local machine to a remote machine ... >>> All these operations i have to do in script. ... >>> generation mechanism in SSH. ... >> the authorized_keys file in the .ssh directory. ...
    (comp.unix.admin)
  • Re: pppd pty equivilent in FBSD
    ... I let pppd manage retries & setting routes. ... >I wouldn't personally recommend vpn over ssh for anyone either, ... I'm the sole bsd user at my company, and the ppp over ssh ... >Actual bash script I call: ...
    (freebsd-net)
  • Re: [kde-linux] Sessions names
    ... ssh 192.168.2.80??? ... You can write a wrapper script that would start ssh to some ip and rename the ... konsole session dynamically. ... dcop call to konsole you need to know the pid of konsole. ...
    (KDE)