Cant use openssh on windows with key authenticationWindows SSH: Permissions for 'private-key' are too...

En Passant For Beginners

Why don't I see the difference between two different files in insert mode in vim?

Can you earn endless XP using a Flameskull and its self-revival feature?

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

Knowing when to use pictures over words

Why do members of Congress in committee hearings ask witnesses the same question multiple times?

How to deal with an incendiary email that was recalled

Avoiding morning and evening handshakes

Getting a UK passport renewed when you have dual nationality and a different name in your second country?

Why can a 352GB NumPy ndarray be used on an 8GB memory macOS computer?

What's the most convenient time of year in the USA to end the world?

What do you call a fact that doesn't match the settings?

Issues with new Macs: Hardware makes them difficult for me to use. What options might be available in the future?

1 0 1 0 1 0 1 0 1 0 1

What to do if authors don't respond to my serious concerns about their paper?

Why avoid shared user accounts?

How is the Incom shipyard still in business?

Slow moving projectiles from a hand-held weapon - how do they reach the target?

Can we use the stored gravitational potential energy of a building to produce power?

Quenching swords in dragon blood; why?

How can I improve my fireworks photography?

I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?

How do you funnel food off a cutting board?

Why did Jodrell Bank assist the Soviet Union to collect data from their spacecraft in the mid 1960's?



Cant use openssh on windows with key authentication


Windows SSH: Permissions for 'private-key' are too openOpenSSH server refuses to accept key authenticationwhy doesnt key authentication work for openssh?Configure OpenSSH to use a non-windows account for authentication?Connecting SSH with OpenSSH keyOpenSSH client refuses to use a new key fileUse custom SSH authentication mechanism (OpenSSH)How to convert a ppk to an openSSH private key encrypted with a passphraseOpenSSH 6.8p1 Cant use multiple AuthenticationMethodsPublic key authentication on Windows OpenSSH serverCygwin Openssh key authentication doesn't work in Windows environment













-1















I can't use my private key (i disabled password auth entirely) because Of "bad permissions"



C:UsersPatron>ssh -i C:UsersPatronid_rsa -p 993 root@my.ip.goes.here
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'C:\Users\Patron\id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "C:\Users\Patron\id_rsa": bad permissions


The key is copied from my Android Oreo device, where termius (app) accepts the same key. The android device is unrooted, so Im not sure if I can change permissions. I tried in Termux with Fakeroot using



chmod 600 /storage/emulated/0/id_rsa


And then copied to Windows, but then I got that error. Please note that I'm not an admin



SOLVED I didn't realize that when I disabled inheritance, I deleted all permission instead of convert to explicit. I also didn't specifically deny others permission, I just allow me. Still cannot convert to ppk though










share|improve this question

























  • Possible duplicate of Windows SSH: Permissions for 'private-key' are too open

    – Ramhound
    Feb 20 at 19:49






  • 1





    You made no mention of you attempting to change the permissions on the file nor the fact you are not an Administrator on the machine. You can't revoke permissions from other users unless you are the owner of the file in question, even then, an Administrator could modify the permissions on the file. You need to contact your system administrator for assitance.

    – Ramhound
    Feb 20 at 19:57











  • So I can't use openssh on Windows, what fan I do? I can't use the key with putty, it's not ppk (and note I have to use w portable version to bypass need for admin rights)?

    – colbycdev
    Feb 20 at 19:58
















-1















I can't use my private key (i disabled password auth entirely) because Of "bad permissions"



C:UsersPatron>ssh -i C:UsersPatronid_rsa -p 993 root@my.ip.goes.here
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'C:\Users\Patron\id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "C:\Users\Patron\id_rsa": bad permissions


The key is copied from my Android Oreo device, where termius (app) accepts the same key. The android device is unrooted, so Im not sure if I can change permissions. I tried in Termux with Fakeroot using



chmod 600 /storage/emulated/0/id_rsa


And then copied to Windows, but then I got that error. Please note that I'm not an admin



SOLVED I didn't realize that when I disabled inheritance, I deleted all permission instead of convert to explicit. I also didn't specifically deny others permission, I just allow me. Still cannot convert to ppk though










share|improve this question

























  • Possible duplicate of Windows SSH: Permissions for 'private-key' are too open

    – Ramhound
    Feb 20 at 19:49






  • 1





    You made no mention of you attempting to change the permissions on the file nor the fact you are not an Administrator on the machine. You can't revoke permissions from other users unless you are the owner of the file in question, even then, an Administrator could modify the permissions on the file. You need to contact your system administrator for assitance.

    – Ramhound
    Feb 20 at 19:57











  • So I can't use openssh on Windows, what fan I do? I can't use the key with putty, it's not ppk (and note I have to use w portable version to bypass need for admin rights)?

    – colbycdev
    Feb 20 at 19:58














-1












-1








-1








I can't use my private key (i disabled password auth entirely) because Of "bad permissions"



C:UsersPatron>ssh -i C:UsersPatronid_rsa -p 993 root@my.ip.goes.here
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'C:\Users\Patron\id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "C:\Users\Patron\id_rsa": bad permissions


The key is copied from my Android Oreo device, where termius (app) accepts the same key. The android device is unrooted, so Im not sure if I can change permissions. I tried in Termux with Fakeroot using



chmod 600 /storage/emulated/0/id_rsa


And then copied to Windows, but then I got that error. Please note that I'm not an admin



SOLVED I didn't realize that when I disabled inheritance, I deleted all permission instead of convert to explicit. I also didn't specifically deny others permission, I just allow me. Still cannot convert to ppk though










share|improve this question
















I can't use my private key (i disabled password auth entirely) because Of "bad permissions"



C:UsersPatron>ssh -i C:UsersPatronid_rsa -p 993 root@my.ip.goes.here
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'C:\Users\Patron\id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "C:\Users\Patron\id_rsa": bad permissions


The key is copied from my Android Oreo device, where termius (app) accepts the same key. The android device is unrooted, so Im not sure if I can change permissions. I tried in Termux with Fakeroot using



chmod 600 /storage/emulated/0/id_rsa


And then copied to Windows, but then I got that error. Please note that I'm not an admin



SOLVED I didn't realize that when I disabled inheritance, I deleted all permission instead of convert to explicit. I also didn't specifically deny others permission, I just allow me. Still cannot convert to ppk though







windows-10 android openssh private-key






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 mins ago







colbycdev

















asked Feb 20 at 19:13









colbycdevcolbycdev

33




33













  • Possible duplicate of Windows SSH: Permissions for 'private-key' are too open

    – Ramhound
    Feb 20 at 19:49






  • 1





    You made no mention of you attempting to change the permissions on the file nor the fact you are not an Administrator on the machine. You can't revoke permissions from other users unless you are the owner of the file in question, even then, an Administrator could modify the permissions on the file. You need to contact your system administrator for assitance.

    – Ramhound
    Feb 20 at 19:57











  • So I can't use openssh on Windows, what fan I do? I can't use the key with putty, it's not ppk (and note I have to use w portable version to bypass need for admin rights)?

    – colbycdev
    Feb 20 at 19:58



















  • Possible duplicate of Windows SSH: Permissions for 'private-key' are too open

    – Ramhound
    Feb 20 at 19:49






  • 1





    You made no mention of you attempting to change the permissions on the file nor the fact you are not an Administrator on the machine. You can't revoke permissions from other users unless you are the owner of the file in question, even then, an Administrator could modify the permissions on the file. You need to contact your system administrator for assitance.

    – Ramhound
    Feb 20 at 19:57











  • So I can't use openssh on Windows, what fan I do? I can't use the key with putty, it's not ppk (and note I have to use w portable version to bypass need for admin rights)?

    – colbycdev
    Feb 20 at 19:58

















Possible duplicate of Windows SSH: Permissions for 'private-key' are too open

– Ramhound
Feb 20 at 19:49





Possible duplicate of Windows SSH: Permissions for 'private-key' are too open

– Ramhound
Feb 20 at 19:49




1




1





You made no mention of you attempting to change the permissions on the file nor the fact you are not an Administrator on the machine. You can't revoke permissions from other users unless you are the owner of the file in question, even then, an Administrator could modify the permissions on the file. You need to contact your system administrator for assitance.

– Ramhound
Feb 20 at 19:57





You made no mention of you attempting to change the permissions on the file nor the fact you are not an Administrator on the machine. You can't revoke permissions from other users unless you are the owner of the file in question, even then, an Administrator could modify the permissions on the file. You need to contact your system administrator for assitance.

– Ramhound
Feb 20 at 19:57













So I can't use openssh on Windows, what fan I do? I can't use the key with putty, it's not ppk (and note I have to use w portable version to bypass need for admin rights)?

– colbycdev
Feb 20 at 19:58





So I can't use openssh on Windows, what fan I do? I can't use the key with putty, it's not ppk (and note I have to use w portable version to bypass need for admin rights)?

– colbycdev
Feb 20 at 19:58










1 Answer
1






active

oldest

votes


















1














The problem is in the Windows side (not on Android)



Change permissions on C:UsersPatronid_rsa from within Windows. It seems your file permissions are not being duplicated when you copy the file contents.



For example by right-clicking on that file in Windows-explorer.






share|improve this answer
























  • I tried what I could find. Please note I'm not an admin on this PC. What permission do I need?

    – colbycdev
    Feb 20 at 19:52











  • @colbycdev - You need to be an Administrator in order to fix this particular problem.

    – Ramhound
    Feb 20 at 19:55











  • So to ssh on Windows, I have to use passwords? It's a public library pc, I can't become admin

    – colbycdev
    Feb 20 at 19:56













  • @colbycdev - You won't be able to use this particular machine to SSH into your server if that is the case. The duplicate question's answer (and this one) is indeed the solution to your problem.

    – Ramhound
    Feb 20 at 19:58











  • Use something like "portable Putty" instead. That should work on a library PC if they have USB ports enabled. Otherwise use something like Connectbot on your Android tablet (or phone if the screen is big enough). All of these will connect to SSH servers that only support public-key authentication. You may have to massage your private key into a suitable format but that is doable with standard tools.

    – RedGrittyBrick
    Feb 20 at 20:16











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%2f1407899%2fcant-use-openssh-on-windows-with-key-authentication%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














The problem is in the Windows side (not on Android)



Change permissions on C:UsersPatronid_rsa from within Windows. It seems your file permissions are not being duplicated when you copy the file contents.



For example by right-clicking on that file in Windows-explorer.






share|improve this answer
























  • I tried what I could find. Please note I'm not an admin on this PC. What permission do I need?

    – colbycdev
    Feb 20 at 19:52











  • @colbycdev - You need to be an Administrator in order to fix this particular problem.

    – Ramhound
    Feb 20 at 19:55











  • So to ssh on Windows, I have to use passwords? It's a public library pc, I can't become admin

    – colbycdev
    Feb 20 at 19:56













  • @colbycdev - You won't be able to use this particular machine to SSH into your server if that is the case. The duplicate question's answer (and this one) is indeed the solution to your problem.

    – Ramhound
    Feb 20 at 19:58











  • Use something like "portable Putty" instead. That should work on a library PC if they have USB ports enabled. Otherwise use something like Connectbot on your Android tablet (or phone if the screen is big enough). All of these will connect to SSH servers that only support public-key authentication. You may have to massage your private key into a suitable format but that is doable with standard tools.

    – RedGrittyBrick
    Feb 20 at 20:16
















1














The problem is in the Windows side (not on Android)



Change permissions on C:UsersPatronid_rsa from within Windows. It seems your file permissions are not being duplicated when you copy the file contents.



For example by right-clicking on that file in Windows-explorer.






share|improve this answer
























  • I tried what I could find. Please note I'm not an admin on this PC. What permission do I need?

    – colbycdev
    Feb 20 at 19:52











  • @colbycdev - You need to be an Administrator in order to fix this particular problem.

    – Ramhound
    Feb 20 at 19:55











  • So to ssh on Windows, I have to use passwords? It's a public library pc, I can't become admin

    – colbycdev
    Feb 20 at 19:56













  • @colbycdev - You won't be able to use this particular machine to SSH into your server if that is the case. The duplicate question's answer (and this one) is indeed the solution to your problem.

    – Ramhound
    Feb 20 at 19:58











  • Use something like "portable Putty" instead. That should work on a library PC if they have USB ports enabled. Otherwise use something like Connectbot on your Android tablet (or phone if the screen is big enough). All of these will connect to SSH servers that only support public-key authentication. You may have to massage your private key into a suitable format but that is doable with standard tools.

    – RedGrittyBrick
    Feb 20 at 20:16














1












1








1







The problem is in the Windows side (not on Android)



Change permissions on C:UsersPatronid_rsa from within Windows. It seems your file permissions are not being duplicated when you copy the file contents.



For example by right-clicking on that file in Windows-explorer.






share|improve this answer













The problem is in the Windows side (not on Android)



Change permissions on C:UsersPatronid_rsa from within Windows. It seems your file permissions are not being duplicated when you copy the file contents.



For example by right-clicking on that file in Windows-explorer.







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 20 at 19:49









RedGrittyBrickRedGrittyBrick

67.1k13106162




67.1k13106162













  • I tried what I could find. Please note I'm not an admin on this PC. What permission do I need?

    – colbycdev
    Feb 20 at 19:52











  • @colbycdev - You need to be an Administrator in order to fix this particular problem.

    – Ramhound
    Feb 20 at 19:55











  • So to ssh on Windows, I have to use passwords? It's a public library pc, I can't become admin

    – colbycdev
    Feb 20 at 19:56













  • @colbycdev - You won't be able to use this particular machine to SSH into your server if that is the case. The duplicate question's answer (and this one) is indeed the solution to your problem.

    – Ramhound
    Feb 20 at 19:58











  • Use something like "portable Putty" instead. That should work on a library PC if they have USB ports enabled. Otherwise use something like Connectbot on your Android tablet (or phone if the screen is big enough). All of these will connect to SSH servers that only support public-key authentication. You may have to massage your private key into a suitable format but that is doable with standard tools.

    – RedGrittyBrick
    Feb 20 at 20:16



















  • I tried what I could find. Please note I'm not an admin on this PC. What permission do I need?

    – colbycdev
    Feb 20 at 19:52











  • @colbycdev - You need to be an Administrator in order to fix this particular problem.

    – Ramhound
    Feb 20 at 19:55











  • So to ssh on Windows, I have to use passwords? It's a public library pc, I can't become admin

    – colbycdev
    Feb 20 at 19:56













  • @colbycdev - You won't be able to use this particular machine to SSH into your server if that is the case. The duplicate question's answer (and this one) is indeed the solution to your problem.

    – Ramhound
    Feb 20 at 19:58











  • Use something like "portable Putty" instead. That should work on a library PC if they have USB ports enabled. Otherwise use something like Connectbot on your Android tablet (or phone if the screen is big enough). All of these will connect to SSH servers that only support public-key authentication. You may have to massage your private key into a suitable format but that is doable with standard tools.

    – RedGrittyBrick
    Feb 20 at 20:16

















I tried what I could find. Please note I'm not an admin on this PC. What permission do I need?

– colbycdev
Feb 20 at 19:52





I tried what I could find. Please note I'm not an admin on this PC. What permission do I need?

– colbycdev
Feb 20 at 19:52













@colbycdev - You need to be an Administrator in order to fix this particular problem.

– Ramhound
Feb 20 at 19:55





@colbycdev - You need to be an Administrator in order to fix this particular problem.

– Ramhound
Feb 20 at 19:55













So to ssh on Windows, I have to use passwords? It's a public library pc, I can't become admin

– colbycdev
Feb 20 at 19:56







So to ssh on Windows, I have to use passwords? It's a public library pc, I can't become admin

– colbycdev
Feb 20 at 19:56















@colbycdev - You won't be able to use this particular machine to SSH into your server if that is the case. The duplicate question's answer (and this one) is indeed the solution to your problem.

– Ramhound
Feb 20 at 19:58





@colbycdev - You won't be able to use this particular machine to SSH into your server if that is the case. The duplicate question's answer (and this one) is indeed the solution to your problem.

– Ramhound
Feb 20 at 19:58













Use something like "portable Putty" instead. That should work on a library PC if they have USB ports enabled. Otherwise use something like Connectbot on your Android tablet (or phone if the screen is big enough). All of these will connect to SSH servers that only support public-key authentication. You may have to massage your private key into a suitable format but that is doable with standard tools.

– RedGrittyBrick
Feb 20 at 20:16





Use something like "portable Putty" instead. That should work on a library PC if they have USB ports enabled. Otherwise use something like Connectbot on your Android tablet (or phone if the screen is big enough). All of these will connect to SSH servers that only support public-key authentication. You may have to massage your private key into a suitable format but that is doable with standard tools.

– RedGrittyBrick
Feb 20 at 20:16


















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%2f1407899%2fcant-use-openssh-on-windows-with-key-authentication%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

Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...