Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 816
einstein Avatar asked Jan 13 '11 13:01

einstein


People also ask

How do I connect to a remote server in eclipse?

To connect to the remote via the SSH connection type Only server, go to "Server Name -> SFTP Files -> Root". Eclipse will then ask you for a user name and password to connect to the remote server.

How can I connect to my Amazon EC2 instance if I lost my SSH key pair?

If you've lost the key pair, you can create an AMI of the existing instance, and then launch a new instance. You can then select a new key pair by following the instance launch wizard.

How do I connect one EC2 instance to another?

Open the Amazon EC2 console. In the left navigation pane, choose Instances and select the instance to which to connect. Choose Connect. On the Connect To Your Instance page, choose EC2 Instance Connect (browser-based SSH connection), Connect.


2 Answers

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

like image 107
turbohoje Avatar answered Sep 22 '22 02:09

turbohoje


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.

like image 2
Hito_kun Avatar answered Sep 20 '22 02:09

Hito_kun