[英]Connect Eclipse RSE with remote Linux server using public key attained from Amazon ec2
I want a easy way to save, copy and edit files on a remote server. 我想要一种简单的方法来保存,复制和编辑远程服务器上的文件。 I'm using Eclipse as an IDE, what could be better for these tasks than RSE(Remote System Exlporer) plugin for Eclipse.
我使用Eclipse作为IDE,对于这些任务而言,这比Eclipse的RSE(Remote System Exlporer)插件更好。 The thing is that I dont know how to make a connection using a public key.
问题是我不知道如何使用公钥建立连接。 I have file that I downloaded from my Amazon account, * .pem.
我有从亚马逊帐户下载的文件* .pem。 But I don't see any forms or inputs for this, when I try to connect to my remote Linux server.
但是,当我尝试连接到远程Linux服务器时,我没有看到任何形式或输入。 It is just User-id and password.
它只是用户ID和密码。 I also tried to open the public key using the system's text editor and copy everything to my password field, but it didn't worked.
我还尝试使用系统的文本编辑器打开公钥,并将所有内容复制到我的密码字段,但它没有用。 Pls help me
请帮助我
this was baking my noodle for a while too. 这也是我的面条烤了一会儿。 you put the keys in a folder not in the RSE config but in the whole of eclipse
你把钥匙放在不在RSE配置但在整个日食中的文件夹中
check this: http://siteadmin.gforge.inria.fr/eclipse-ssh.html 检查一下: http : //siteadmin.gforge.inria.fr/eclipse-ssh.html
Not mentioned (at least in explicitly) is the fact that RSE (and for what I've seen, Eclipse in general) only seems to work with 1024 bit keys https://bugs.eclipse.org/bugs/show_bug.cgi?id=404714 没有提到(至少在显式方面)事实是RSE(以及我所见过的,Eclipse一般)似乎只能使用1024位密钥https://bugs.eclipse.org/bugs/show_bug.cgi? ID = 404714
I also had issues, because my privatekey was 2048, but I added a new key to authorized hosts and then I could connect. 我也有问题,因为我的私钥是2048,但我为授权主机添加了一个新密钥,然后我可以连接。
I added my local computer's ~/.ssh/id_rsa.pub
to the remote /home/ec2-user/.ssh/authorized_keys
. 我将本地计算机的
~/.ssh/id_rsa.pub
到远程/home/ec2-user/.ssh/authorized_keys
。 Then just set the user to connect in RSE to ec2-user
when connecting. 然后在连接时将用户设置为在RSE中连接到
ec2-user
。
Someone asked for root
login. 有人要求
root
登录。 It works too: update /root/.ssh/authorized_keys
, and edit /etc/ssh/sshd_config
to allow root login: 它也适用:更新
/root/.ssh/authorized_keys
,并编辑/etc/ssh/sshd_config
以允许root登录:
#PermitRootLogin forced-commands-only
PubkeyAuthentication yes
Then reload the sshd daemon: service sshd restart
然后重新加载sshd守护进程:
service sshd restart
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.