1

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.

1 Answers1

1

I guess the best way copy pub key to remote host is use ssh-copy-id:

ssh-copy-id -i ~/.ssh/mykey user@host
metallic
  • 207