Re: remote shutdown windows from linux

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



No, just make sure you restart the openssh service after you make your
change. I just tested it from my Slack box and had no problem. You also want
to make sure that the home directory in your passwd file matches the home
folder where you put your ".ssh" folder. (You can tell if it is incorrect
because ssh will give you an error when you login about not finding it.) If
you need to correct it, make sure you restart the server. Make sure you have
your "authenticated_keys2" file in your .ssh folder. I'm off to the golf
course, post back if you don't get it going and I'll get back to you
tomorrow.
Louis

<diffuser78@xxxxxxxxx> wrote in message
news:1147732414.142889.173490@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I followed that step number 4 to change the modes.

Is there any other setting you have to modify in ssh_config to get it
started ?

Thanks man ,I really appreciate your help




3c273 wrote:
Did you try step 4 from the key_authentication.txt file? I still have
not
tried with my slackware box, but from a windows box, I was unable to
login
using public key until I changed the value of "StrictModes" to "no" in
the
"sshd.config" file and restart the openssh service. I will try from
Slackware when I get a chance.
Louis

<diffuser78@xxxxxxxxx> wrote in message
news:1147727622.503822.281600@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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