简体   繁体   中英

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. 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. But I don't see any forms or inputs for this, when I try to connect to my remote Linux server. It is just User-id and password. 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

check this: 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

I also had issues, because my privatekey was 2048, but I added a new key to authorized hosts and then I could connect.

I added my local computer's ~/.ssh/id_rsa.pub to the remote /home/ec2-user/.ssh/authorized_keys . Then just set the user to connect in RSE to ec2-user when connecting.

Someone asked for root login. It works too: update /root/.ssh/authorized_keys , and edit /etc/ssh/sshd_config to allow root login:

#PermitRootLogin forced-commands-only
PubkeyAuthentication yes

Then reload the sshd daemon: service sshd restart

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM