3

I was using ssh-keygen which at some point asked me where I wanted my public key and my identification saved. I typed \ by mistake and the result was:

Your identification was saved in \.
Your public key was saved in \.pub.

Now I cannot seem to find them. Can I find out what happened and delete those files? I could not find them with ls -la \. Actually it starts some type of prompt. Any help would be appreciated.

2 Answers 2

2

You need to use two back slashes. In the terminal using the bash shell (which it is by default) the backslash character tells bash to allow you to continue typing commands on a new line (hence the prompt you saw).

So if you do ls -la \\ that should show you the contents of "\"

Likewise mv \\ fixed should rename the folder to "fixed"

8
  • "No such file or directory"
    – Dalamar
    Commented May 24, 2017 at 20:17
  • Sounds like it might not be named what you think it was. If you go to the directory where you ran ssh-keygen from and run ls -a do you see any directories that look promising?
    – moneyt
    Commented May 24, 2017 at 20:19
  • Is it possible there may be an erroneous space in the filename?
    – user221458
    Commented May 24, 2017 at 20:26
  • The filename is supposed to be just "\". I guess I could try to look for the .pub file in the whole hard disk.
    – Dalamar
    Commented May 24, 2017 at 20:32
  • I get lot of access denied. It's weird, if you say you want something saved in "\" where is it really saved?
    – Dalamar
    Commented May 24, 2017 at 20:41
-1

You have to enable hidden files to find it then you can search it in spotlight

2
  • 2
    Welcome to Ask Different. Please see How to Answer. Good answers should be more than just a single sentence; they'll include the steps necessary to achieve the desired result because the answer will be used by other people, not just the person who originally posted the question. Feel free to edit your answer to include additional detail.
    – fsb
    Commented May 24, 2017 at 20:07
  • Don't mind the dot at the end. It's just the end of the sentence. identification is not supposed to be hidden. Those are already the full names of the files.
    – Dalamar
    Commented May 24, 2017 at 20:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .