Re: remote shutdown windows from linux



I am doing exactly what is said in the doc and what you said but I am
not able to login using the public key.

I was just wondering if you were able to do it using public key.

Every help is greatly appreciated.

Thanks

3c273 wrote:
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 Blocking
    ... >> disable root login to ssh and disable password based logins. ... I need to get the public key up ... You generate one public and private key pair. ...
    (Debian-User)
  • Re: How to protect the application not to be run on other server ?
    ... the usual way to do that is to require login to use the app. ... You can create certificates for your clients. ... a light-weight public key ... encryption package that does not need the JCE. ...
    (comp.lang.java.programmer)
  • Re: Stopping Brute Force SSH Attacks
    ... I only use public key authentication. ... where I try to login before adding my key to ssh-agent, ... other dumb mistake, and am prompted for a passwd. ...
    (comp.security.ssh)
  • Re: SSH login for normal users using authorized keys
    ... But you have to login at least ... >>I was able to create successful login for the root account from a remote ... >>I tried to do it for a normal account it still asks for the password. ... Generated the public key in the client machine. ...
    (RedHat)
  • Re: how to re-use existing session?
    ... > Using public key authentication in conjunction with the ssh-agent should ... I don't want to login at all. ...
    (comp.security.ssh)