Fairly new to Debian (moving from a Windows server environment to a Linux one and Debian was suggested)
I am running a headless server which I am accessing over SSH and I need to copy the contents of several files to paste into other locations that are not based on my server - Github SSH for example, and other places. I have installed xclip as I thought this would do the trick by doing this
Code: Select all
xclip -sel clip < ~/.ssh/id_rsa.pub
Code: Select all
Error: Can't open display: (null)
SOLUTION 1:
Code: Select all
On the client:
1: Open ~/.ssh/config
2: Add X11Forwarding yes
3: Save ~/.ssh/config
If the above file doesn't exist create it and then do steps 2 and 3
On the server"
1: Open ~/.ssh/config
2: Add X11Forwarding yes
3: Save ~/.ssh/config
If the file doesn't exist on the server then create it
Code: Select all
Use this long string to specify the display: DISPLAY=:0 xclip -sel clip < ~/.ssh/id_rsa.pub
I feel really silly having to ask for help for something as simple as a clipboard tool, so sorry in advance for the noob question.
XD
Jay