6

I have forgotten SSH password from Remote Server, but it is saved in IDE (PhpStorm 2017.1) in hidden way:

PhpStorm 2017.1.4 ssh config

Is there any way to view hidden password?

LazyOne
  • 158,824
  • 45
  • 388
  • 391
ilya_direct
  • 501
  • 1
  • 6
  • 13
  • 1
    It depends on your OS and password storage (I guess). What option do you have selected at `Settings/Preferences | Appearance & Behavior | System Settings | Passwords`? If it's KeePass -- then you should be able to open that `c.kdbx` file in appropriate program (there are many for each OS). If it's Keychain (Mac OS / Linux) then I have no idea (not a Mac/Linux user myself). – LazyOne Jun 08 '17 at 09:41
  • @LazyOne Yes, passwords in KeePass. But I tried to open it in "KeePass 2": it shows a modal pop-up with master-password, key-file etc [screenshot](http://screenshot.ru/ba2d2c70b2ee317b87520d73b0a8328a.png). Of cause I do not know these information... – ilya_direct Jun 09 '17 at 18:54
  • 2
    Try with no password at all (that's if you have not setup Master Password in PhpStorm). Otherwise -- if it's not your PhpStorm setup .. or you have forgot that password as well -- no use. – LazyOne Jun 09 '17 at 19:01
  • 2
    https://youtrack.jetbrains.com/issue/IDEA-170108 -- try doing what it says here (official comment from corresponding dev) – LazyOne Jun 09 '17 at 19:04

1 Answers1

21

I finally could retrieve password from PhpStorm 2017.1:

  1. Go to Settings/Preferences | Appearance & Behavior | System Settings | Passwords, enter new master password and save.

  2. Open /.PhpStorm2017.1/config/c.kdbx (in "Keepass 2" or "Keeweb") with saved master password.

  3. Here it is!

Thanks to @LazyOne

ilya_direct
  • 501
  • 1
  • 6
  • 13
  • If you enter a new master password, the old passwords will be cleared (PhpStorm 2019.3.2) – Alberto Moro Feb 11 '20 at 16:55
  • I just entered a master password, and was able to use it from keepass2 (Intellij IDEA 2021.1). Maybe you already had it secured with a master password? In that case changing it, without knowing the old one will indeed clear the password-db. – Bart Robeyns Aug 04 '21 at 09:17
  • 1
    works flawlessly! – Gaurav Jan 13 '22 at 06:52