Thanks Benoit,

It worked :)

On Thu, Jun 15, 2017 at 4:35 PM, Benoît Allard <benoit.all...@greenbone.net>
wrote:

> First, I hope you generated a new keypair after posting it to this list.
>
> On Thu, 15 Jun 2017 15:32:56 +0500
> Umar Draz <unix...@gmail.com> wrote:
>
> > Ok Here what I did
> >
> > -----BEGIN RSA PRIVATE KEY-----\n
> > MIIEowIBAAKCAQEAlyAvAVqVt7JA6iUdTe3QUkeLe5Djb6xLWKDqC+
> LWuGjy/4LrHqS3gIXqV/wd\n
> > sOn/wZ8BXdgY5g4u7T2vH/Gt+VUGfgjsDOYNsYKvIlTyqiar+
> wZplvWjw14jSV4nIr4CgqoYqi+D\n
> > 5UN+6fJrhEauWDEvwfv0pa0i9xbWKHmPK1X2e/Ue6M66RlYZvOihcTPJhSd2kUH9Mzi1
> x1gXXHaQ\n
> > yZ2k3HYFI/rYDOknboncyldj4alCbf61GFi48/Xz9yWVDD1JSiJs0nNLQiNxAW15TGNV
> 0iSFCCYA\n
> > OMIAWF9siRobIZxU5l1TQehv6DGIChyla/IPdlTZYrqqqs/
> GfzFr9QIDAQABAoIBABkHZYGN5Rnl\n
> > VcbxmqbbahMWck1ms6Q9HsVw8RJC4VjtWMFkh1gt445Pn34u7SPtvUPt96X5
> MjZ3xuHXw3dA6ZVP\n
> > taGODLoeJ8psYGEJPJ9dhEIwz7AGwraKksGF7Glemr/VN/
> yHngqMYSqR0ai4pAtLKiOwfNYrlIzj\n
> > pVhSuZltg0fr6IGiT5VpcNj/3T89syBqMBGSZVxETSDaYox1Y6tXho
> gHnq7YeT44q8Oz17GOYrRv\n
> > gfEHuHsaV51EtZudRtHZJh2xSjd25y0iOWn8ZiyfWCBIBDUTKeOkAGSCGiHj
> EBcCeg44qyKS2jXm\n
> > av5IRwL1JdTmj7xYaM6BOOwUeEECgYEA5qqa83UhqNTLeoFReBSXO+
> XObvUWZcJFHCj3KKkfRP+u\n
> > fJi6v/HISnf9YLTaffJkURj8XJkyQjaTNstLDTQN1O09jbntFnuMCqUgG7pNav7Bv8
> uDimUqNBED\n
> > -----END RSA PRIVATE KEY-----
> >
> > But it was failed with this error
> >
> > Erroneous private key or associated passphrase
>
> Then, we misunderstood each other. I meant to open the .pem file with a
> text editor, move the cusror to the end of the file (After the very last
> "-----"), then press <Enter>, and save the modifed file.
>
> You should then be able to import that new modified file into gsa
> without generating an error.
>
> If you still struggle to have that working, best is to join us via irc
> on #openvas in OFTC. It will be easier to help you that way than with
> interposed mails.
>
> Best Regards,
> Ben.
>
> >
> > On Thu, Jun 15, 2017 at 3:28 PM, Benoît Allard
> > <benoit.all...@greenbone.net> wrote:
> >
> > > On Thu, 15 Jun 2017 15:23:23 +0500
> > > Umar Draz <unix...@gmail.com> wrote:
> > >
> > > > Hi Benoit
> > > >
> > > > You meant I need to modify my .pem file and add this \n ?
> > > >
> > >
> > > That is correct.
> > >
> > > > Regards
> > > >
> > > > On Thu, Jun 15, 2017 at 3:15 PM, Benoît Allard
> > > > <benoit.all...@greenbone.net> wrote:
> > > >
> > > > > On Thu, 15 Jun 2017 14:46:42 +0500
> > > > > Umar Draz <unix...@gmail.com> wrote:
> > > > >
> > > > > > Hello,
> > > > > >
> > > > > > Thanks for your response, first of all the link you sent me
> > > > > > for authenticated user quite different then I have installed
> > > > > > version of Openvas. My Linux boxes are running on AWS where I
> > > > > > have my .pem key
> > > > > >
> > > > > > Please find attached image. I tried to add my key but it was
> > > > > > failed
> > > > > >
> > > > > > I also had check the logs from /var/log/openvas/openvasmd.log
> > > > > > and there I saw the following as well while creating my
> > > > > > credentials
> > > > > >
> > > > > > GLib:UNKNOWN:2017-06-15 09h40.42 UTC:28145: gmem.c:100:
> > > > > > failed to allocate 18446744073623177295 bytes
> > > > >
> > > > > That is a known bug that has only been fixed recently. I
> > > > > believe the workaround was simply to add a trailing line to the
> > > > > keyfile before uploading it.
> > > > >
> > > > > Regards,
> > > > > Ben.
> > > > >
> > > > > >
> > > > > > Regards,
> > > > > >
> > > > > >
> > > > > > On Thu, Jun 15, 2017 at 2:25 PM, Christian Fischer <
> > > > > > christian.fisc...@greenbone.net> wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > On 15.06.2017 10:56, Umar Draz wrote:
> > > > > > > > I have few centos linux hosts with ssh key only access,
> > > > > > > > what is the correct way to add key in openvas so I can
> > > > > > > > scan those hosts
> > > > > > >
> > > > > > > there is a documentation available here which shows the
> > > > > > > needed information about such "Authenticated Scans":
> > > > > > >
> > > > > > > http://docs.greenbone.net/GSM-Manual/gos-3.1/en/scanning.
> > > > > > > html#authenticated-scan
> > > > > > >
> > > > > > > If you're using ed25519 keys also be aware that you need a
> > > > > > > recent libssh version 0.7.0 or later on your scanning
> > > > > > > machine:
> > > > > > >
> > > > > > > https://www.libssh.org/2015/05/11/libssh-0-7-0/
> > > > > > >
> > > > > > > > Regards
> > > > > > >
> > > > > > > Regards,
> > > > > > >
> > > > > > > --
> > > > > > >
> > > > > > > Christian Fischer | PGP Key: 0x54F3CE5B76C597AD
> > > > > > > Greenbone Networks GmbH | http://greenbone.net
> > > > > > > Neumarkt 12, 49074 Osnabrück, Germany | AG Osnabrück, HR B
> > > > > > > 202460 Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver
> > > > > > > Wagner _______________________________________________
> > > > > > > Openvas-discuss mailing list
> > > > > > > Openvas-discuss@wald.intevation.org
> > > > > > > https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/
> > > > > openvas-discuss
> > > > >
> > > > >
> > >
> > >
>
>
_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to