No selectable SSH Agent in Eclipse 2020-12 (4.18.0) - eclipse

I was looking into adding my RSA keys into Keychain in my mac (macOS Sierra if that matters). One of the things that I found was to use ssh-agents so that whenever you generate a key, it will get added automatically to Keychain.
The problem is that I can't see any agent in the SSH Agent list in Eclipse SSH2 settings window. Am I missing anything?
I saw this post Eclipse git and ssh-agent but the plugin is not maintained anymore. I can't seem to find a way to add the export statement into an init script as I'm not sure which file that is.
Thanks

Eclipse JGit can now work with the standard ssh-agent, so you need to run
ssh-add
on the command line of your Mac and provide the passphrase to your keys so the ssh-agent can load your keys and offer them to Eclipse over the socket.
This support is pretty new, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=541274 #howlger mentioned.
An earlier solution, which still works, is to set the GIT_SSH environment variable for Eclipse so that JGit uses the system SSH with the standard ssh-agent. The process to set environment variables for Applications in macOS is described here: Setting environment variables on eclipse

Related

why my vscode does not have the same libraries installed in wsl?

I'm using wsl and it runs codes in vscode pretty fine and I have different libraries which I installed through pip and conda in wsl but when I run that code using vscode itself it doesn't recognize the libraries or even pip itself.
I don't have any other environment.
I should add that I installed the packages globally using conda install ... or pip install ... in base environment and I only have base environment and I run my code through code . and I also have python and remote wsl extensions installed in my vscode.
what can be the problem?
I don't have much personal experience with this, but I found some useful information in this Stack Overflow question (even though it doesn't utilize conda), along with https://code.visualstudio.com/docs/remote/wsl-tutorial#_python-development.
I also found this blog post useful, even if it doesn't cover WSL.
In short, make sure you:
Have installed the Python extension (by Microsoft) in VSCode. This is critical for being able to detect and select the Python interpreter. You don't mention having this in place, so I believe this is your likely problem.
You have done this already, but including it for others who might read this later -- Install the Remote - WSL extension (or the Remote Development extension pack) in VSCode.
You are also doing this already -- Start VSCode from inside your WSL distribution. Alternatively, you can start VSCode from Windows and then select the Remote WSL - Reopen Folder in WSL from the Command Palette (also accessible from the "Remote" Status Bar).
In VSCode, open the Command Palette with Shift+Ctrl+P, search for the Python: Select Interpreter command, and you should find your Conda environment in the list.
After selecting this, you should find that your project is using the interpreter and modules that you have installed via conda.
One thing I did to overcome this issue is go to Extensions -> Local (You should have two tabs there, Local and WSL:DISTRO) DISTRO refers to whatever DISTRO you're using, you will see that some of the local extensions are disabled in the current workspace (WSL) and there is a little cloud icon in the WSL:DISTRO tab that says install Local Extensions in WSL:DISTRO once you click that it will let you choose which extensions to install and you should be good to go!

EGit not remembering SSH passphrase

Using the terminal git command and RabbitVCS, I am never asked for my SSH passphrase, since it is added to the SSH agent:
me#mymachine:~$ ssh-add -l
2048 s0:m3:f1:ng:3r:pr:1n:7... me#domain.tld (RSA)
Anyway, I have issues using EGit with Eclipse. I am prompted for my passphrase when I make an action that requires remote access.
After looking for solutions, I found this SO question: How to make eclipse remember ssh key passphrase?
Basically I have the same issue. So I tried to set the environment variable, restarted my machine but it just won't work...
me#mymachine:~$ echo $GIT_SSH
/usr/bin/ssh
(The environment variable is set in .bash-aliases like suggested in the other question)
Since this approach has not worked for me, I was looking for other possible issues which could prevent EGit from using the SSH key from the SSH agent, but in every question/topic/thread setting the environment variable fixed the problem for the people who had the same issue...
What can I do to make this running?
What else could lead to this behaviour?
What can I do to debug this?
Some more information:
Eclipse: Version: Luna Service Release 2 (4.4.2)
EGit: 4.0.1.201506240215-r (up-to-date)
Ubuntu: 15.04
The key was generated using ssh-keygen, and I dont want to use another key or create a new one
I found out that Eclipse was not aware of the GIT_SSH environment variable. When I ran Eclipse through the terminal, everything was fine. After I relaunched Eclipse from the Unity side panel, it refused to work again. My fix was to make a custom eclipse.desktop file in ~/.local/share/applications with the following content:
[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse IDE
Icon=/opt/eclipse/icon.xpm
Exec=/opt/eclipse/eclipse_param.sh
Terminal=false
Categories=Development;IDE;Java;
StartupWMClass=Eclipse
Contents of /opt/eclipse/eclipse_param.sh
#!/bin/bash
export GIT_SSH=/usr/bin/ssh
/opt/eclipse/eclipse -showlocation
After these changes, everything worked as expected.

How to pass ssh password asked on terminal while using subclipse

Our internal svn repository's URI looks like svn+ssh://svn/hogehoge/svnroot/. Using subclipse on eclipse that is run from a terminal, eclipse freezes when I try to access repository and never return. I found on terminal ssh password is asked but looks like it's just printed there and doesn't accept my input (password I enter is interpreted as command on terminal). Any idea is appreciated.
Environment:
Ubuntu 10.04
Eclipse Indigo SP2
Subclipse (Required) 1.6.18
Subversion Client Adapter (Required) 1.6.12
Subversion JavaHL Native Library Adapter (Required) 1.6.17
I would recommend you install SVNKit and change to using it instead of JavaHL. SVNKit includes a pure Java SSH client so it is able to provide a GUI prompt within Eclipse. There are two alternatives if you want to use JavaHL:
Start Eclipse from a Terminal window. SSH prompts will then appear within that window.
Run ssh-agent. Your SSH client will then fetch the keys from ssh-agent and will not need the terminal prompt.
Usually users are already using ssh-agent, in which case I would recommend just using JavaHL. Since you are apparently not using it, I would suggest to just use SVNKit.

GitHub for website development

OK< I know I can use Eclipse for Java programming and such but I work using WAMP for editing PHP, XHTML, JavaScript files... what IDE is best to edit the files and use GitHub? Because I don't know want to go to localhost and then copy my files to my local GitHub repo...
Cloud9 IDE might be what you are looking for! It's an online IDE with out-of-the-box intergration with GitHub, heroku etc. and gives you the ability to share workspaces as well.
Eclipse has the egit plugin that is really nice. You can use aptana which is based around eclipse but includes all the web views. It can basically edit everything you mentioned and really well, while providing a nice wrapper for your git repos
http://aptana.org/products/studio3
http://eclipse.org/egit/
well is not an IDE but vim with some git plugins is the best for me.
Eclipse should have some git plugins also, I think.
The best way to learn git is yo use it from command line!
Emacs + tramp + the command line ?
Update: magit is reported to support tramp
Update:
My experience: I have a distant linux server running a rails app. and private git repositories / apache (using several VirtualHosts with or without ssl). That server runs a ssh server. I use bare ssh session for command line usage (git, nominal admin.) and emacs + tramp to remotely edit the files presents on that server. I you are not rebuked by anti-eye candies tools (as for not-at-all drag'n'drop stuff), I would suggest you to give emacs a try (see EmacsW32 and nXhtml if you are under Windows). I assume you can install a ssh server on your WAMP machineā€¦ If this is the case, you could open your file from emacs just by using the following syntax (assuming you would edit the /home/renaud/.bashrc on the distant server):
/ssh:user#obf.uscatedmachine.org:/home/user/.bashrc
With putty on windows: see that and this posts.
It works the same for directories. You shall be prompted for your password once, and then edit the file/directory as if it is just on your machine. For the git part, I have verified myself since I do the git stuff directly from a ssh terminal, but latest magit
is reported to support tramp (i.e. remote git plumbering from my understanding).
If you have never used emacs before, it will not be easy. You will have to learn emacs basics first and customize it to fit you needs. My opinion is that's worth to give it a try. I could help you with basic configuration if needed.
(I use myself emacs almost for everything on my linux box from simple text editing to Java programming.)
Update:
After some testing, magit works very well remotely (tested on linux)! A new mode added to my configuration thanks to your question!

Eclipse: How to clone git over ssh with keyfile?

Hey, I am using Eclipse (while running Ubuntu 10.10) and would like to connect to a remote git. Normally I would use the egit plugin, but now I need to connect over ssh with keyfile.
Unfortunately egit has no "with keyfile" option, is there a way to connect to my repository with my keyfile?
Is there a "hidden" way to make Eclipse to pass parameters (-i keyfile) to ssh or something?
http://wiki.eclipse.org/EGit/User_Guide/Remote - I had to manually load my existing key in the "Key Management" tab.
I don't know anything about egit. But what you usually do is:
Start ssh-agent (mine is automatically started, when my window manager starts, so you have to google a bit how to setup it)
Run ssh-add [your key]
Use git over ssh as usual. It won't ask you for any passwords, since ssh-agent takes care of it.
HTH