Retaining remote host credentials when transferring to new computer

I am setting up a new computer and transferred over the .PHPStorm2017.2 settings directory.

This has copied the remote host server and path details but it has not copied over the username and password.

Is it possible to copy these over too?

0
5 comments

Hi there,

OS? Password storage used?

If it's Linux/Mac with Keychain .. then you have to copy your keychain somehow (no clue myself).

If it's KeePass (.kdbx file) then it should be no issue (as far as I remember it worked fine here 1 year ago on Windows when installing fresh Windows 10 on brand new SSD and transferring IDE settings from previous Windows 7 installation)

0

It's win 7 to win 10 and passwords are saved.  Not sure of the exact storage mechanism, where would I find that out?

Where would I find the .kdbx file?

Thanks!

0

>Where would I find the .kdbx file?

In Settings screen, type "password" in search box -- it will narrow the result to just few pages.

File | Settings | Appearance & Behavior | System Settings | Passwords

 

P.S.

Since you are on Windows, the KeePass is the only option ... so .kdbx file should have been copied over already.

If it still does not pick it up (no passwords remembered and that .kdbx file is not empty) .. then it might be the Master Password (default one) and it stored somewhere else on old system (sorry, no details on that). In any case -- check your idea.log for possible hints.

 

1

From https://youtrack.jetbrains.com/issue/IDEA-174581

>Currently we store master-password in pdb.pwd file which is encrypted as user/OS/machine-specific so even another user on the same machine won't be able to access the passwords by simply copying the configuration files.

>However if we synchronize just kdbx file with another user/workstation, platform does not ask for a master password and silently generates new master-password and wipes the contents of KeePass storage.

>Only if we will set the correct master password before the synchronization so the correct pdb.pwd would be generated, we can sync kdbx file safely.

So ... if you still have an access to old system -- set up your own Master Password before exporting/copying password database -- this way the master password will be non-unique-to-current-system (not autogenerated) and "survive" the transfer.

Not sure why it worked for me back then -- quite likely it was working differently (simpler) one year ago...

 

Other than that -- you may check other tickets for that subsystem: https://youtrack.jetbrains.com/issues/IDEA?q=%23%7BPassword%20Safe%7D%20

 

2

I did finally manage to get this to work but it was a little fiddly.

 

After some faffing the steps that worked were: 

1. Copy over the .PHPStorm2017.2 directory

2. Open PHPStorm and set the KeePass password

3. Copy over the c.kdbx file only again

3. Close and re-open

Thanks for you help Andriy, appreciated.

0

Please sign in to leave a comment.