Hello Guest

Author Topic: [SOLVED] SSH authentication failed  (Read 6625 times)

0 Members and 1 Guest are viewing this topic.

Offline BabelAddicted

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
[SOLVED] SSH authentication failed
« on: April 29, 2008, 02:55:34 AM »
Hi guys, i'm new in Babel Enterprise platform, but i'm experiencing a problem with authentication handshake between a WinXP host (with Babel Agent 1.1) and a Fedora Core 8 Server (MySQL, Apache 2.x and PHP 5.x).

This is my "BabelService --test-ssh" output:

Public key file C:\Programmi\Babel Enterprise\key\id_dsa.pub exists.
Private key file C:\Programmi\Babel Enterprise\key\id_dsa exists.
Connecting with 10.30.11.2...
Authentication Failed when connecting to 10.30.11.2
Reason: Username/PublicKey combination invalid
Check the remote host configuration and the public/private key files.



Now, i think that i've configured the public/private pair keys correctly....but i can't log in the agent into server with SSH....why?
« Last Edit: March 14, 2013, 05:01:46 AM by darode »

Offline Manuel Arostegui

  • Global Moderator
  • Expert member
  • *****
  • Posts: 853
  • Karma: 50
    • View Profile
SSH authentication failed
« Reply #1 on: April 29, 2008, 03:41:01 AM »
Hi, good nick :-)

Well, ssh keys in windows systems are actually hell on earth, I tell you.

Assuming you exported rightly all the ssh-keys generated following the manual, it's very likely the process went wrong when copying the ssh key to the server, cause the linux keys are working properly, right?

If so, you might want to copy the windows's key to a notepad and make sure there're no blank spaces and put all of it in the same line. Copy it and paste it in the linux file.
Make sure there's no white line at the end of the file, if there is, it will fail.
« Last Edit: December 31, 1969, 04:00:00 PM by manu »

Offline BabelAddicted

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
SSH authentication failed
« Reply #2 on: April 29, 2008, 06:35:29 AM »
Hi and thanks for the quick reply.

Ok, i've check the DSA-key string....so, i use Putty-gen to generate Private/Public OpenSSH keys....do you know Puttygen, right? :D

So, when i copy the string to notepad and then i put it in the same line there're no blank spaces. This is a sample string (public key):

ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIBeVRnc2OCH1wZ7pQwlT0R2euTzFa Fg7+YHLaXzAYrxWcNjW1Z2m/aM0VaMK0ygM+LmSFvhOHW0DgVA8z22tvQfQqNEqr4SxATAG6sgd9EL7Ve1h3LxrWTk2yEoByHLerx9zKUBd3tBJhiCaa55artVYcmcHzCT4C3eA9fAYR7sfQ ==rsa-key-20080429



Now, how can be that there's no match between the two public keys?
« Last Edit: December 31, 1969, 04:00:00 PM by BabelAddicted »

Offline raul

  • Administrator
  • Expert member
  • *****
  • Posts: 576
  • Karma: 1
    • View Profile
SSH authentication failed
« Reply #3 on: April 29, 2008, 07:58:16 AM »
You can check the procedure to set the keys at http://www.openideas.info/wiki/index.php?title=Pandora_1.3:Documentation_en:Install_Agent#SSH_Key_generation_for_Windows

This document was made for Pandora FMS, but the procedure it's the same.

Raúl
« Last Edit: December 31, 1969, 04:00:00 PM by raul »

Offline BabelAddicted

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
SSH authentication failed
« Reply #4 on: April 30, 2008, 07:04:50 AM »
Nothing......there's something that wrong with sshd and babel......i don't know.....but it's impossible to understand why there's this problem....


I've tried with Fedora 7 and i can't neither install Babel Server 1.1 because there're problems with glib, pango, cairo&freetype, pixma, pkg-config.....



-_- it's boring......


Then, i'm trying again with fedora 8, but i don't think that it'll change this strange behavior....-.-
« Last Edit: December 31, 1969, 04:00:00 PM by BabelAddicted »

Offline Manuel Arostegui

  • Global Moderator
  • Expert member
  • *****
  • Posts: 853
  • Karma: 50
    • View Profile
SSH authentication failed
« Reply #5 on: April 30, 2008, 08:42:12 AM »
I'm afraid to tell you that there's nothing wrong with babel, there's something wrong with your ssh.

If you don't get it running and you don't wanna spend more time on that issue, you might want to try FTP out instead to transfer de XML.

The problem with the libraries are totally normal as Babel need some stuff to run, you know :-)
You have to install the following packages:
http://www.openideas.info/wiki/index.php?title=Babel:QIG#Babel_Server_prerequisites

Hope this helps
Manuel
« Last Edit: December 31, 1969, 04:00:00 PM by manu »

Offline jelly1991

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: SSH authentication failed
« Reply #6 on: January 09, 2013, 03:03:21 AM »
Thanks http://openideas.info/