How to install xclip on an EC2 instance?

I follow the Github instructions for adding an SSH key . I generated the id_rsa.pub file from my AWS EC2 instance, but I cannot complete the step where I can copy the contents of the file using xclip because I cannot install xclip on the EC2 instance.

  • I tried installing xclip on an EC2 instance using sudo yum install xclip , but that didn't work ("No xclip package available").
  • So, I looked around and found more detailed installation instructions , but they do not work ("curl: (22) The requested URL returned an error: 404 Not Found"), and the suggested correct URLs in the comments also failed.
  • (I also tried just copying the text contents of id_rsa.pub using Putty and ctl-c, but Github announced that the key received was invalid.)

So how to install xclip on a 64-bit Amazon Linux AMI 2012.09?

+8
linux github amazon-ec2 yum
source share
2 answers

You do not need xclip. Just ssh into the EC2 instance and cat key to your terminal, then copy and paste it from your terminal to where you need it.

+10
source share

I don't want to wake up zombies, but if someone still wonders if you can wget rpm (i.e. from here ) and then

 sudo yum localinstall my-wget.rpm 

Note. you may need to do the same for some dependencies.

+1
source share

All Articles