csshx icon indicating copy to clipboard operation
csshx copied to clipboard

Add SSH Key support

Open GoogleCodeExporter opened this issue 10 years ago • 6 comments

$ ./csshX -v
csshX  0.7

I extended the user@host:port group with a ;pemkey part so that you can easily 
connect to hosts that need PEM keys (eg Amazon EC2 services).

--hosts file format is now
user@host:port;/path/to/pem any command here

the path to the pem key has to be absolute

Original issue reported on code.google.com by [email protected] on 29 May 2014 at 1:59

Attachments:

GoogleCodeExporter avatar Mar 03 '15 22:03 GoogleCodeExporter

Hello,

I'm using version 0.74 of csshx. When connecting to an Amazon instance from a 
terminal I use the following command:

ssh -1 <key pair> ec2-user@<ip address>

Can you elaborate by showing the command you used and give and example of how 
to configure the host file. I've tried several variations with no success.

Thank you

Original comment by [email protected] on 21 Oct 2014 at 7:25

GoogleCodeExporter avatar Mar 03 '15 22:03 GoogleCodeExporter

Out of the box this will not work. you have to apply the patch I included.

The hosts file is then as described in my comment:
user@host:port;/path/to/pem

Original comment by [email protected] on 22 Oct 2014 at 6:28

GoogleCodeExporter avatar Mar 03 '15 22:03 GoogleCodeExporter

Thank you! Works great!

Original comment by [email protected] on 22 Oct 2014 at 9:19

GoogleCodeExporter avatar Mar 03 '15 22:03 GoogleCodeExporter

How do I apply the patch?

Original comment by [email protected] on 17 Nov 2014 at 4:35

GoogleCodeExporter avatar Mar 03 '15 22:03 GoogleCodeExporter

We can also set a default ssh key location

mihigh avatar Oct 02 '15 10:10 mihigh

this is what works for me csshx --ssh_args "-i " -l centos dbaws

shubhamrajvanshi avatar Sep 29 '16 00:09 shubhamrajvanshi