SSH keys on both Windows 10 and WLinux












0















I have a Windows 10 Pro installation. I have installed WSL WLinux Distro. I am trying to use SSH keygen generation per the GitLab SSH keygen page.



Everything goes fine. The key is created under id_rsa.pub, and then I try to copy the thing. I used xclip which is installed. And I get:
Cannot open display of null. I tried the Windows option as well,
cat ~/.ssh/id_rsa.pub. Didn't work either.



I tried a lot of solution online. They don't do anything. Has anyone done this, with WLinux distribution.



UPDATE:
I used the guide here. This is for Ubuntu and the latest Windows 10 Versions, which I am running, but I use a different distribution WLinux in this case.



The cp, command , I haven't tried yet. I was able to get the content of the -d_rsa.pub file using vim. The problem is I need a more secure config, in the future.










share|improve this question

























  • Either one or the other. I would prefer to be able to do it from both. But WSL is a priority. So, I would like to be able to use SSH from wsl.

    – Dimitris Efst
    Jan 24 at 16:58











  • I want to add the key to my work GitLab account. I also have 2 more SSH keys I need to connect to GitLab and GitHub accordingly. I also, don't get. If you don't care about security, SSH keys are exactly for that reason, convenience as well, but mainly security. Please elaborate..

    – Dimitris Efst
    Jan 24 at 17:14











  • OK. To understand you issue, could you add some info? Which instruction did you follow, any link? Do you want to make WSL accessible from outside world? Copy from where to where? Did you try with simple cp command to copy? Thank you.

    – Biswapriyo
    Jan 24 at 17:33











  • I added a small update section. As far as accessing it goes, I just want to be able to clone, push, and etc... inside WSL. Everything else, can come later.. Thanks!!

    – Dimitris Efst
    Jan 24 at 19:26
















0















I have a Windows 10 Pro installation. I have installed WSL WLinux Distro. I am trying to use SSH keygen generation per the GitLab SSH keygen page.



Everything goes fine. The key is created under id_rsa.pub, and then I try to copy the thing. I used xclip which is installed. And I get:
Cannot open display of null. I tried the Windows option as well,
cat ~/.ssh/id_rsa.pub. Didn't work either.



I tried a lot of solution online. They don't do anything. Has anyone done this, with WLinux distribution.



UPDATE:
I used the guide here. This is for Ubuntu and the latest Windows 10 Versions, which I am running, but I use a different distribution WLinux in this case.



The cp, command , I haven't tried yet. I was able to get the content of the -d_rsa.pub file using vim. The problem is I need a more secure config, in the future.










share|improve this question

























  • Either one or the other. I would prefer to be able to do it from both. But WSL is a priority. So, I would like to be able to use SSH from wsl.

    – Dimitris Efst
    Jan 24 at 16:58











  • I want to add the key to my work GitLab account. I also have 2 more SSH keys I need to connect to GitLab and GitHub accordingly. I also, don't get. If you don't care about security, SSH keys are exactly for that reason, convenience as well, but mainly security. Please elaborate..

    – Dimitris Efst
    Jan 24 at 17:14











  • OK. To understand you issue, could you add some info? Which instruction did you follow, any link? Do you want to make WSL accessible from outside world? Copy from where to where? Did you try with simple cp command to copy? Thank you.

    – Biswapriyo
    Jan 24 at 17:33











  • I added a small update section. As far as accessing it goes, I just want to be able to clone, push, and etc... inside WSL. Everything else, can come later.. Thanks!!

    – Dimitris Efst
    Jan 24 at 19:26














0












0








0








I have a Windows 10 Pro installation. I have installed WSL WLinux Distro. I am trying to use SSH keygen generation per the GitLab SSH keygen page.



Everything goes fine. The key is created under id_rsa.pub, and then I try to copy the thing. I used xclip which is installed. And I get:
Cannot open display of null. I tried the Windows option as well,
cat ~/.ssh/id_rsa.pub. Didn't work either.



I tried a lot of solution online. They don't do anything. Has anyone done this, with WLinux distribution.



UPDATE:
I used the guide here. This is for Ubuntu and the latest Windows 10 Versions, which I am running, but I use a different distribution WLinux in this case.



The cp, command , I haven't tried yet. I was able to get the content of the -d_rsa.pub file using vim. The problem is I need a more secure config, in the future.










share|improve this question
















I have a Windows 10 Pro installation. I have installed WSL WLinux Distro. I am trying to use SSH keygen generation per the GitLab SSH keygen page.



Everything goes fine. The key is created under id_rsa.pub, and then I try to copy the thing. I used xclip which is installed. And I get:
Cannot open display of null. I tried the Windows option as well,
cat ~/.ssh/id_rsa.pub. Didn't work either.



I tried a lot of solution online. They don't do anything. Has anyone done this, with WLinux distribution.



UPDATE:
I used the guide here. This is for Ubuntu and the latest Windows 10 Versions, which I am running, but I use a different distribution WLinux in this case.



The cp, command , I haven't tried yet. I was able to get the content of the -d_rsa.pub file using vim. The problem is I need a more secure config, in the future.







linux windows-10 ssh windows-subsystem-for-linux






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 24 at 19:25







Dimitris Efst

















asked Jan 24 at 16:12









Dimitris EfstDimitris Efst

23




23













  • Either one or the other. I would prefer to be able to do it from both. But WSL is a priority. So, I would like to be able to use SSH from wsl.

    – Dimitris Efst
    Jan 24 at 16:58











  • I want to add the key to my work GitLab account. I also have 2 more SSH keys I need to connect to GitLab and GitHub accordingly. I also, don't get. If you don't care about security, SSH keys are exactly for that reason, convenience as well, but mainly security. Please elaborate..

    – Dimitris Efst
    Jan 24 at 17:14











  • OK. To understand you issue, could you add some info? Which instruction did you follow, any link? Do you want to make WSL accessible from outside world? Copy from where to where? Did you try with simple cp command to copy? Thank you.

    – Biswapriyo
    Jan 24 at 17:33











  • I added a small update section. As far as accessing it goes, I just want to be able to clone, push, and etc... inside WSL. Everything else, can come later.. Thanks!!

    – Dimitris Efst
    Jan 24 at 19:26



















  • Either one or the other. I would prefer to be able to do it from both. But WSL is a priority. So, I would like to be able to use SSH from wsl.

    – Dimitris Efst
    Jan 24 at 16:58











  • I want to add the key to my work GitLab account. I also have 2 more SSH keys I need to connect to GitLab and GitHub accordingly. I also, don't get. If you don't care about security, SSH keys are exactly for that reason, convenience as well, but mainly security. Please elaborate..

    – Dimitris Efst
    Jan 24 at 17:14











  • OK. To understand you issue, could you add some info? Which instruction did you follow, any link? Do you want to make WSL accessible from outside world? Copy from where to where? Did you try with simple cp command to copy? Thank you.

    – Biswapriyo
    Jan 24 at 17:33











  • I added a small update section. As far as accessing it goes, I just want to be able to clone, push, and etc... inside WSL. Everything else, can come later.. Thanks!!

    – Dimitris Efst
    Jan 24 at 19:26

















Either one or the other. I would prefer to be able to do it from both. But WSL is a priority. So, I would like to be able to use SSH from wsl.

– Dimitris Efst
Jan 24 at 16:58





Either one or the other. I would prefer to be able to do it from both. But WSL is a priority. So, I would like to be able to use SSH from wsl.

– Dimitris Efst
Jan 24 at 16:58













I want to add the key to my work GitLab account. I also have 2 more SSH keys I need to connect to GitLab and GitHub accordingly. I also, don't get. If you don't care about security, SSH keys are exactly for that reason, convenience as well, but mainly security. Please elaborate..

– Dimitris Efst
Jan 24 at 17:14





I want to add the key to my work GitLab account. I also have 2 more SSH keys I need to connect to GitLab and GitHub accordingly. I also, don't get. If you don't care about security, SSH keys are exactly for that reason, convenience as well, but mainly security. Please elaborate..

– Dimitris Efst
Jan 24 at 17:14













OK. To understand you issue, could you add some info? Which instruction did you follow, any link? Do you want to make WSL accessible from outside world? Copy from where to where? Did you try with simple cp command to copy? Thank you.

– Biswapriyo
Jan 24 at 17:33





OK. To understand you issue, could you add some info? Which instruction did you follow, any link? Do you want to make WSL accessible from outside world? Copy from where to where? Did you try with simple cp command to copy? Thank you.

– Biswapriyo
Jan 24 at 17:33













I added a small update section. As far as accessing it goes, I just want to be able to clone, push, and etc... inside WSL. Everything else, can come later.. Thanks!!

– Dimitris Efst
Jan 24 at 19:26





I added a small update section. As far as accessing it goes, I just want to be able to clone, push, and etc... inside WSL. Everything else, can come later.. Thanks!!

– Dimitris Efst
Jan 24 at 19:26










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397979%2fssh-keys-on-both-windows-10-and-wlinux%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397979%2fssh-keys-on-both-windows-10-and-wlinux%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

If I really need a card on my start hand, how many mulligans make sense? [duplicate]

Alcedinidae

Can an atomic nucleus contain both particles and antiparticles? [duplicate]