Several ways to ask this question:
提出这个问题的几种方法:
- How can I get eclipse to use my ssh-config?
- How can I get eclipse to use /usr/bin/ssh instead of the internal implementation? (I am not completely sure it does, but it does not read Host-entries in .ssh/config)
我如何让eclipse使用我的ssh-config?
我如何让eclipse使用/ usr / bin / ssh而不是内部实现? (我不完全确定它确实如此,但它不读取.ssh / config中的主机条目)
This is what I have tried:
这是我尝试过的:
- have CVS_ROOT in the environment eclipse starts in (I am asked for username and password, I know this setup works with command-line cvs)
- create a new repository location, with connection-type ext (message: unknown response received from cvs server: )
- same, with extssh (error: cannot locate host, which means that .ssh/config is not being read, I refer to a Host-alias defined there)
- same, but with the dns-name of the server, this time I'm asked for the passphrase for my id_rsa-file, so eclipse seems to be aware of atleast parts of my ssh-setup. The passphrase-dialog is from eclipse, not the usual ssh-agent-dialog.
在eclipse开始的环境中有CVS_ROOT(我被问到用户名和密码,我知道这个设置适用于命令行cvs)
创建一个新的存储库位置,连接类型为ext(消息:从cvs服务器接收的未知响应:)
同样,用extssh(错误:找不到主机,这意味着.ssh / config没有被读取,我指的是那里定义的主机别名)
同样的,但是使用服务器的dns-name,这次我被问到我的id_rsa文件的密码,所以eclipse似乎知道我的ssh-setup的至少部分。密码短语对话框来自eclipse,而不是通常的ssh-agent-dialog。
I am using eclipse 3.4.1 on ubuntu 08.10
我在ubuntu 08.10上使用eclipse 3.4.1
2 个解决方案
#1
I expect you have looked at SSH in the Windows --> Preferences.
我希望您已经在Windows中查看了SSH - >首选项。
I have used ssh with eclipse. IIRC, I needed to add a key into
我在eclipse中使用了ssh。 IIRC,我需要添加一个密钥
- Window --> Preferences --> General --> Network Connections --> SSH2.
窗口 - >首选项 - >常规 - >网络连接 - > SSH2。
You can also change the program you use for SSH (e.g. you don't trust the Java implementation of SSH) in
您还可以更改用于SSH的程序(例如,您不信任SSH的Java实现)
- Window --> Preferences --> Team --> CVS --> Ext Connection Method.
窗口 - >首选项 - >团队 - > CVS - >外部连接方法。
#2
Eclipse can use ssh-agent like this:
Eclipse可以像这样使用ssh-agent:
- Window / Preferences / Team / CVS /Ext Connection Method
- Select "Use an external program to connect"
- CVS_RSH: ssh
- Parameters: -l {user} {host}
- CVS_SERVER: cvs
窗口/首选项/团队/ CVS / Ext连接方法
选择“使用外部程序进行连接”
参数:-l {user} {host}
Pay attention that your cvs urls have "ext:" in there .cvs directory
请注意您的cvs网址在.cvs目录中有“ext:”
This way eclipse just uses ssh like you do on your shell. If ssh-agent works inb your shell it works with eclipse too.
这样eclipse就像你在shell上一样使用ssh。如果ssh-agent在shell中工作,那么它也适用于eclipse。
#1
I expect you have looked at SSH in the Windows --> Preferences.
我希望您已经在Windows中查看了SSH - >首选项。
I have used ssh with eclipse. IIRC, I needed to add a key into
我在eclipse中使用了ssh。 IIRC,我需要添加一个密钥
- Window --> Preferences --> General --> Network Connections --> SSH2.
窗口 - >首选项 - >常规 - >网络连接 - > SSH2。
You can also change the program you use for SSH (e.g. you don't trust the Java implementation of SSH) in
您还可以更改用于SSH的程序(例如,您不信任SSH的Java实现)
- Window --> Preferences --> Team --> CVS --> Ext Connection Method.
窗口 - >首选项 - >团队 - > CVS - >外部连接方法。
#2
Eclipse can use ssh-agent like this:
Eclipse可以像这样使用ssh-agent:
- Window / Preferences / Team / CVS /Ext Connection Method
- Select "Use an external program to connect"
- CVS_RSH: ssh
- Parameters: -l {user} {host}
- CVS_SERVER: cvs
窗口/首选项/团队/ CVS / Ext连接方法
选择“使用外部程序进行连接”
参数:-l {user} {host}
Pay attention that your cvs urls have "ext:" in there .cvs directory
请注意您的cvs网址在.cvs目录中有“ext:”
This way eclipse just uses ssh like you do on your shell. If ssh-agent works inb your shell it works with eclipse too.
这样eclipse就像你在shell上一样使用ssh。如果ssh-agent在shell中工作,那么它也适用于eclipse。