Operating System - Linux
1820635 Members
1825 Online
109626 Solutions
New Discussion юеВ

how to ssh from redhat server to windows server without password

 
Matt Shaffer_1
Regular Advisor

how to ssh from redhat server to windows server without password

I got help from windows admin installing ssh on windows 2003 server. from my rhel4 box I can ssh to the windows server using a domain ID. however I don't know how to pass the password or make the windows server know the password. I need to (from rhel) connect to windows and kick off a script. Did I provide enough info? Thanks in advance for the help.
4 REPLIES 4
TwoProc
Honored Contributor

Re: how to ssh from redhat server to windows server without password

Matt from the RH machine, you need to create a key pair (public and private) for the user that that is going to ssh from the RH box to the Windows server.

in the user's home directory, look in the .ssh directory and see if a key file isn't there already, if so, it would be called, "id_dsa and id_dsa.pub" or "id_rsa and id_rsa.pub". If neither of these two key pair types don't exist, you'll have to create it.

ssh-keygen -t rsa
or
ssh-keygen -t dsa

whichever of the two you like, if you don't know which, just run ssh-key without arguments.
When it asks for password, don't put one if you plan for the key to be used passwordlessly.

Now that you've done this, the file with the ending ".pub" is what you need to install as an accepted key on your Windows server that is hosting the sshd server.

For how to install that key and use it, well that depends on what Windows software solution you're using... so you need to consult with the folks who know about that software, probably on the Windows support forum (not the Linux one).

So, I've gotten you off to a start from the Linux side, so go off and figure out your Windows side.

Hope this helps.

P.S. I see that you've only assigned points to assigned points to "72 of 163 responses " from your account - time to go back and give credit where credit is due to the folks that have helped you.
We are the people our parents warned us about --Jimmy Buffett
Matt Shaffer_1
Regular Advisor

Re: how to ssh from redhat server to windows server without password

I would love to grant points to my past forums. Can you show me how to get back to see my old forums? This combined with a high work load is probably why I didn't assign points to begin with.

Thanks. I will close this forum as I know how to generate an ssh key on the linux side.
Matt Shaffer_1
Regular Advisor

Re: how to ssh from redhat server to windows server without password

.
Dennis Handly
Acclaimed Contributor

Re: how to ssh from redhat server to windows server without password

>Can you show me how to get back to see my old forums?

Your under your profile, there is a list of threads with unassigned points:
http://forums.itrc.hp.com/service/forums/pageList.do?userId=CA1245942&listType=unassigned