I am trying to copy my public key on a VPS.
After I connect I run the following
xclip -sel clip < ~/.ssh/id_rsa.pub
Xclip gives me a can't open display error.
Right now I manually open the file and copy the key. There has to be a better, faster way to do this.
I guess the best way copy pub key to remote host is use ssh-copy-id: