How can I install xclip on an EC2 instance?
I needed this today for a file larger than a ssh-key, and cat was not enough. You need to enable the EPEL repo in EC2 in order to get xclip:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmsudo rpm -ivh epel-release-latest-7.noarch.rpmsudo yum-config-manager --enable epelsudo yum install xclip -y
You don't need xclip. Just ssh
into the EC2 instance and cat
the key to your terminal, then copy and paste it from your terminal to wherever you need it.
I don't mean to wake up the zombies but in case someone is still wondering you can wget
the rpm (i.e. from here) and then
sudo yum localinstall xclip-0.12-1.el6.x86_64.rpm
Note: you may need to do the same for some dependencies.