Re: remote shutdown windows from linux

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I don't use key authentication but I believe you need to store your public
key in a folder called ".ssh" (note the leading dot) inside your home
folder. You will also need to add your key to the "authorized_keys" file.
There is a document called "key_authentication.txt" in the docs folder that
explains it. Hope this helps.
Louis

<diffuser78@xxxxxxxxx> wrote in message
news:1147722299.095611.36870@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I can now logon using password. I wanted to automate the login using
the public and private keys. So I created a pair of public and private
keys on my linux box.
I copied the .pub key on the windows box in the $HOME directory which
is C:\Document and Settings\Username.

Then I copied the .pub file in the list of authorized_keys which is
also located in the $HOME directory which is C:\Document and
Settings\Username.

Now when i login from linux box, it asks me username and password.
After giving password it logs me in. Since I wanted to automate the
procude I did the public/private keys. I want to avoid the step that it
asks me the password.

I want something like

ssh username@IP_ADDR # It will log me in
shutdown -s # shuts the computer down


Every help is appreciated.

Thanks



.



Relevant Pages

  • Re: SSH login automation, get stuck at the last step.
    ... filename.txt" to the server. ... But the execution of the script stops ... automatic login to as SSH with a password was unreliable. ... create the public/private key pair and use ...
    (comp.lang.tcl)
  • Re: how to logon to 30+ machines and put a job run in background and then logout automatically in a
    ... A SSH-client uses a public/private key-pair to authenticate with ... you can authenticate without giving a password. ... There are numerous resources on the web about SSH, ...
    (comp.unix.misc)
  • ssh no password problem
    ... I want to make ssh login with no paasword on my machine (to install a tool ... I have generated the public key and added it at the end the file ... Generating public/private dsa key pair. ... Enter passphrase: ...
    (Ubuntu)
  • Re: SSH without typing password
    ... ]and private keys so that a user can access a that system via SSH ... ]I have tried to setup my Mac OS X system so I can SSH into this way. ... ]public/private key pairs are in effect? ... Wrongly set up ssh daemon. ...
    (comp.security.unix)