将文件内容复制到linux终端的剪贴板。

时间:2022-03-23 06:19:06

I'm learning git and github , so I'm stuck in problem, and the problem is we generate the ssh key but , how to copy the ssh key from id_rsa.pub to clipboard. I'm using linux backbox so how we copy the content of id_rsa.pub to the clipboard so that i would be able to paste the ssh key on github. any suggestion and link for the same would be appreciable .
thanks

我正在学习git和github,所以遇到了问题,问题是我们生成了ssh密钥,但是,如何从id_rsa复制ssh密钥。酒吧到剪贴板。我正在使用linux backbox,所以我们如何复制id_rsa的内容。pub到剪贴板,这样我就可以将ssh密钥粘贴到github上。对此的任何建议和联系都将是值得赞赏的。谢谢

2 个解决方案

#1


3  

You can use:

您可以使用:

cat ~/.ssh/id_rsa.pub

I hope that help you, if not:

我希望这能帮助你,如果不是:

https://confluence.atlassian.com/pages/viewpage.action?pageId=270827678

https://confluence.atlassian.com/pages/viewpage.action?pageId=270827678

#2


0  

If you're copying from terminal (like if you use the cat command already posted), highlight the key details and use Ctrl + Shift + C. This should put it on your clipboard. You can also right click and select 'copy' from terminal.

如果您正在从终端复制(比如使用已经发布的cat命令),请突出显示关键细节并使用Ctrl + Shift + c。您还可以在终端右键单击并选择“copy”。

#1


3  

You can use:

您可以使用:

cat ~/.ssh/id_rsa.pub

I hope that help you, if not:

我希望这能帮助你,如果不是:

https://confluence.atlassian.com/pages/viewpage.action?pageId=270827678

https://confluence.atlassian.com/pages/viewpage.action?pageId=270827678

#2


0  

If you're copying from terminal (like if you use the cat command already posted), highlight the key details and use Ctrl + Shift + C. This should put it on your clipboard. You can also right click and select 'copy' from terminal.

如果您正在从终端复制(比如使用已经发布的cat命令),请突出显示关键细节并使用Ctrl + Shift + c。您还可以在终端右键单击并选择“copy”。