Cant use openssh on windows with key authentication
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
add a comment |
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
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
add a comment |
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
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
windows-10 android openssh private-key
edited Mar 3 at 4:35
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
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
|
show 1 more comment
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
|
show 1 more comment
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.
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
|
show 1 more comment
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.
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.
answered Feb 20 at 19:49
RedGrittyBrickRedGrittyBrick
67.3k13106163
67.3k13106163
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
|
show 1 more comment
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
|
show 1 more comment
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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