grep to find out OpenSSH-files on a hard disc -

i got a problem

after a harddisk crash i have to restore all the stuff

  • pgp things for enigmail
  • openSSH-things for the SFTP-protocol - that filezilla uses to connect servers

and so on and so forth

problem: i have messed up the crypted files with the passphrases and things like that.

well i have no glue where i find the necessary files that are needed for FileZilla

i tried several files -

  • backring
  • securering and a bunch of others

but i guess that they are private and public keys for the pgp- (enigmail).

when i try to import such files, the protocoll in Filezilla says _ no appropiate file - you need a file with a OpenSSH-formate

**question: **can i run a search with grep to find such files on the machine ?

Howto - FileZilla Wiki

Starting with version 3.0.8, FileZilla has a built-in key management page in the settings dialog.

Note: Importing a site’s public key is not supported. It’s not possible to pre-cache a public key (which I had obtained as a keyfile from the site’s administrator) to verify the server is the one you’re trying to connect to. Eventually I had to run ssh-keygen -l -f <keyfile name> on a Linux box, then perform a visual comparison.
[edit] Windows

For SFTP using SSH2, FileZilla utilizes the excellent PuTTY tools. To allow the use of RSA / DSA key files with Filezilla, you’ll need to download two more tools from PuTTY: Pageant and (assuming your key file isn’t already in PPK format) PuTTYgen.

If your key file is already in PuTTY’s PPK format you can skip this paragraph. However if your key is in OpenSSH format, you first need to convert it to PuTTY’s PPK format. To do this, launch PuTTYgen and from the “Conversions” menu, select the “Import key” option. Select your key and follow the prompts to enter your pass phrase. Save your private key.

Now run Pageant. In your system tray, you’ll see the Pageant icon appear. Right-click the icon and select “Add Key” and select your private key (PPK) file. Follow the prompt to enter your pass phrase and you’re done.

Now simply launch FileZilla and connect to your server using SFTP using SSH2 with a username and an empty password. Don’t forget to close pageant when you’re done.

I’m not sure how well this’ll work on systems where you’re not permitted to save your password, but after selecting “Don’t save password” in the site manager for my server, I could exit the site manager by pressing “cancel” on the password dialog and then “Save and Exit”. When you select your site from the list, again press “cancel” and it’ll still attempt to connect.

As you may or may not know, FileZilla can be easily carried around on portable media such as a USB stick and used from any PC. This also applies to the PuTTY tools, so if you stick Pageant and your PPK key file on to, for example, a USB stick, you can now access your server from any Windows PC.
[edit] Alternative Method

In the Edit - Settings menu of the FileZilla client, you can [Add key file…] under Connection - SFTP, and FileZilla can use the public key authentication in the site manager with the ‘Interactive’ Logontype. However, the .ppk file is converted to unprotected one if the original .ppk file is password-protected (FileZilla can do that for you when importing the file). As of 3.0.10, a password-protected key file is not supported yet.
[edit] Other platforms

FileZilla supports the standard SSH agents. If your SSH agent is running, the SSH_AUTH_SOCK environment variable should be set.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I think this is what you’re asking… anyway, here’s a public key from
one of my systems:

ssh-rsa
FFFFB3NzaC1yc2EFFFFDFQFBFFFCFQDDqDyzuz0SpoFmaBT9e136jpF7IcCaFmMufTBvn8Go1b8TX6+dW9FKsr0o2OquQwCsZ6G6GVKhcfERiVNvCmGDzqKxZUjlkmz/W3PfmMWTS5Wxc2Ludss5FUaDC1z3wr5pNq9aNLTd/05ejW1sQBvPdbvX6PNKIGpW2DqcYf1b3nxe8XDQboRH+CR9DCNgGsrHBbSFi03FxPslnIcIEdPoN27BzCNE8RaiSlbz8Ceg1WgFVI/Z5FP9gPWjGULwtiYL48cPnGxh43nzZ6fKwVdhViygYRhVBQlpQRWMrexRfFugUNB1FYCnga3F4lFdFp7DlWfaIzLLwVEVv9QamZ7IlVFfdYXpW5yr6GV6P8eF/bFmPWTXDGpH2pVj6Sjz5MFi/h8n/ult/F4fgP/ygz2XLvvcEcx0L+uvy2wupe8D9V7gVyisX081gzKXUDdXO0TCOKVOjkxyQExGlxEOLSb42zP+M+d/9uVPXGoX1uDFBWlZ2KszFCyeWvkwdifZro2n3xpZq+oP9xuFMLKXWK3EiuOgFQDRpO3Tk5otf+g3uFBcWfmxkzt5rkRhnSbvRqhbfm1G3D4cGF20H09tutKUm5SSnB8LkGik+6FYqKcE7kVes5/CzcBxaeStLFj9H+/d5zh2fEilPxcU+FeYNln+fuy42Bs3TfXD7csyL+P1Pw22
ab@novell.com

(all on one line, basically three strings space-delimited).

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPUM7PAAoJEF+XTK08PnB5/8cP/3mHzX28nuw+L/V0AiFKfXbM
BLVXlWeancJCJZV5Z0eOiVWoW1NrXWKMgU3dzTb6uyCgs64JkuFFVbvqgjnl8+xB
EZXe7SfHuM6b0DADYyQSw70rUGu1MaekBT4Nnzc/F613cSG7l5FEBca4Bx0rp/uV
5MX0Giq95WTyuGmt8Y8sZDQMQj34wovFp2/L3dGj9WT59u9AejnWKHJDwDir6tDr
VLLxcnmvTI0j7bCLnY9xu1rJGgWE57YLiIpWHHWAyAu1tDCgKxr79rJLOlqJ/bJY
vjQ/N82mAbtbNGSrjvYHUV7pKrzWjd5hWlf3iJG0vqucFo1tdRuKxOmNXoAtUh7L
6yc3ysN38aDSY88nQVNE9AbaDMX17UwoHIc27ychDzzTHDnm3s4SbpEZjyxid1kr
YPw1mZF131OfcgShkp3Fz7zfyHFpwMgOysm0EM1pR98FuQPZgrL+WQvGKrnY2Klp
vI30kwfJHM0jhxomYYrjDj28omCnXDR3er/QzKRiO1q3rzzXRM9aXxQFP9C0QdaU
qMeCtqLbc6IoQoKF0ZX2feULzcynPwjqsVUubFB12JKn/FBXcWnRWZkYDNYXhE7k
+55yqnaooGUd4npj3WFJzGtkmoZV87pVFnaNLOojYqkxbx8VJ/PZYbjbJBitEFcR
a5oy9CsziMuono+6k/sK
=JpBV
-----END PGP SIGNATURE-----

hello again

thx for the hints!! Great advices.

I did the following: i run a search with grep to find such files on the machine ?

What happened i found out files that begin with this phrase

“BEGIN RSA PRIVATE KEY”.

But what makes me wonder is the fact that the** FileZilla waits for XML-files**. So i am completely lost - i have no files like that…
what is wrong here!? What do i have to do now!?

look forward to hear from you

greetings
db1

PS: **
i found out them by using the powerful grep command [note this is very very powerful] Well i runned this one here
grep -R 'BEGIN .
PRIVATE KEY’ /

i found out several files. Algorithm might differ though.
Well - so far so good. .- But - i am lost. I do not have a xml-file - but the fileZilla- does wait on a xml-file!? What can i do here!?
help me plz plz…

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

How a specific application stores tiles (XML, text, binary) is its own
choosing. XML is great, but comes at a cost of size/complexity vs. a
plain text file. In FileZilla’s case it is probably big enough to make
that cost justified many times over, but often requiring XML just to run
or use encryption is overkill. Anyway, I doubt this will help you find
the files or get things working better, but it may explain why FileZilla
is wanting an XML file.

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPVE4lAAoJEF+XTK08PnB5jO0P/RfzqP7A1HKKyaikvMLtCxnx
ybnT+V6Zhzz10Ma7LRo4WzhaR4Bix/5IEUE3tbrY11fSWPCVOst2ffypMXBtdu0F
U8S+m/bjCQM080HUO6JM5oCxEmGkJMjKQ4a7tmQFqpSyCpHNywVYOC11T/yRrqTH
t9TIHB+ULGpOwMXVcMwOtYP14fzdDySP9opwEaTx6BV0101V9UoPLnwKjbBe20kZ
p3E41VApFIVEyJInZwRCmS8knNRhPvKjpMIKhCk3QUQH+MdxsaRuyB+sTkvVgtUH
4wEeraE9RYSt62u8ZUKZ77xo58aZyMD+RYfHDtUwACWxqMcn3VWuKebAodO0kJdr
xHdAmDekYo24Vvv9El6oZPccAJMBIdxOpd9XBkFzupSfM59J+fn24DPvNUb2njVL
3ba/ybub+KrL51pUllkVKYI1OaltjBZ2Rt5Hzxnro9XjcpQ0lfU0W0viu3ZNDHX/
/I3C1Wh8UwW18T2jRnYJ8eIoPLTCng+CLvxKDzeARyur5TfpgfuSlDeRb1SiETTx
33S83J4uelfFVvL8aiKJnaZbsGwpdX/UjSXnbFOLmgkjVuN1MuCoFuy60hTsw0i4
7c5jqJQ4vU6cafuP4JqqeN/e0DAS3GDkQhq0NPTTUXnn3bERhl2qris1+uOKhvB2
hOp+tU1ykpNWLco2MgNR
=EHMt
-----END PGP SIGNATURE-----

hi ab - thx alot

i try to figure out whats going on here

greetings