Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSH authentication between Windoze and Linux failed

Status
Not open for further replies.

sillyVM

Technical User
Feb 14, 2007
144
US
Don't know where to post this, but this is more like a windoze problem. But I use a client software on windows machine to authentiate to the Linux server. It uses SSH with a public key (SSH DSA). file is called id_dsa.pub. it looks something like this

Code:
ssh-dss AAAAB3NzaC1kc3MAAACBAKio8Tu(deleted contents)mt3B3VbvvhoGwCYdfCHF9U+Z== dsa-key-20070504

But since I moved the Linux server to a new subnet with a new IP address. This client no longer works. I change all my linux client's known_host file, altered ip address. and all clients on them worked fine. However on windoze machine, I can not find no such file. Is there a registry value I can change or anything like that? I know this is not a windoze forum. But if anyone knows anything about it, please help me. Thank you
 
Hi sillyVM,

On the Windows machine where the client doesn't work... are you using putty or something similar?

Most likely you'll have to remove the "sshhostkeys" registry setting for that particular Linux server... and create a new one.

Good luck,

DrD
 
you need to delete the relevant entry in the known-hosts file on the linux server.

si if you are connecting as user peter, you would find it in

/home/peter/.ssh/known-hosts

inside you find entries for all hosts that you have connected from; delete the appropriate one (or all of them, it is safe) and re-connect again from windoz.

QatQat

If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
But I am connecting from Windows to Linux, so it should be in authorized_keys right? known_host is from this Linux to other host.

But anyway, it doesn't make sense to me. There should be something similar to the known_host file on the windows registry. I think.
 
Hi sillyVM.

You should find the keys in "X":\pandora\keys\id_dsa on Windows and /path_to/pandora/.ssh/authorized_keys

You should try to generate another key on the windows box using the puttygen.exe that came with Pandora. Then place the file in the X:\pandora\keys directory and also in the keys directory on your linux server.

Good luck
DrD
 
Yes, I have done it before. The configuration was set. The X:\pandora\keys\id_dsa and id_dsa.pub matches with the authorized_keys still. I am wondering if the windows os keep up a file somewhere similar to known_host file on Linux. Thanks.


It was working fine. Until I moved Pandora_server to a new IP. It does not authenticate.
 
Hi sillyVM,

The Windows registry entry that I referred to in my first answer, "sshhostkeys", is the "known_hosts" file on Windows for putty, which pandora uses.

You just remove the entry referring to the OLD server ip.

Good Luck
DrD

 
Do you know where can I find it in my registry? Sorry about this, I am not sure where to go and find it.


Okay I did a search there are many entries. I guess I can delete them all. Let me try it. Thanks, I think this is what I need it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top