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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby unleash » 02. March 2012 17:01

hi dear apache-friends, 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.
Posts: 147
Joined: 03. December 2011 10:16
Operating System: OpenSuse Linux 12.1

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

Postby hackattack142 » 03. March 2012 01:44

First, Windows does not natively have a grep utility. You could use Windows Search to search for specific file names or files with specific extensions.

Are you trying to recover your previous public/private key pair? They could be placed anywhere on your system. For the FileZilla FTP Client, it takes a private key (*.ppk) that is generated by PuTTY (as stated in that quoted block).
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
Posts: 703
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 64 guests