Open GoogleCodeExporter opened 9 years ago
Please change the title of the issue to: MacVim fails to display password
prompt when attempting to browse
using netrw and the actual result section to: The password prompt was not
displayed
Original comment by yuan...@gmail.com
on 4 Jun 2009 at 4:52
I think this is related to the ssh_askpass problem mentioned in Issue 166 and
it has also popped up on the
vim_mac mailing list a couple of times. It seems to be some sort of linking
problem but I'm not sure what to do
about it. Any help/patches would be welcome.
Original comment by bjorn.winckler@gmail.com
on 5 Jun 2009 at 7:03
I know what causes this now. When ssh needs a password it will ask for one.
If you're running vim in terminal mode it just prompts on the terminal, which
always works. If you're in the GUI ssh will try to use the ssh_askpass program
which unfortunately doesn't exist on Mac OS X.
Here is a temporary workaround:
* download the attached file (macos-askpass) and put it somewhere in your path
* make it executable (chmod a+x macos-askpass)
* invoke MacVim from the terminal like this (the DISPLAY is not needed if it is
already set)
SSH_ASKPASS="macos-askpass" DISPLAY=":0" mvim
* you can now :e scp://user@server/
This is a kludge. I will try to come up with a nicer permanent solution (i.e.
bundle some askpass program with MacVim and set the environment vars
automatically).
However, do note that ssh will ask for a password _every time_ you change
folder, open a file, write a file, whatever. This quickly gets tedious. A
better solution is to set up a private/public key.
Original comment by bjorn.winckler@gmail.com
on 7 Apr 2011 at 8:24
Attachments:
Original issue reported on code.google.com by
yuan...@gmail.com
on 4 Jun 2009 at 4:48