Cannot change file permission after chmod 400

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
0
down vote

favorite












I am about to prepare for using AWS Jupyter Notebook. However, when using SSH to connect AWS, warning message of unprotected private key file prompted out.



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0555 for 'YYF_Frankfurt.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "YYF_Frankfurt.pem": bad permissions
ec2-user@ec2-XX-XX-XXX-XX.eu-central-1.compute.amazonaws.com: Permission denied (publickey).


I followed the instruction and use chmod 400 to change permission. However, the permission did not change.



hkgyyf@LAPTOP-R3DDSPP0:/mnt/c/Users/Yuasto/Desktop/Trading$ chmod 400 YYF_Frankfurt.pem
hkgyyf@LAPTOP-R3DDSPP0:/mnt/c/Users/Yuasto/Desktop/Trading$ ls -l
-r-xr-xr-x 1 hkgyyf hkgyyf 1692 Mar 24 15:41 YYF_Frankfurt.pem


Googled a lot and still cant find solution. Please help







share|improve this question





















  • Try sudo chmod 400 ....
    – Jos
    2 days ago










  • @Jos no change even including sudo
    – hkgyyf
    2 days ago










  • Ah now I notice. Your pem key resides on a Windows drive which obviously doesn't use Linux-type permissions. Move your key to a Linux drive.
    – Jos
    2 days ago










  • Fat and ntfs do not use permissions
    – Panther
    2 days ago
















up vote
0
down vote

favorite












I am about to prepare for using AWS Jupyter Notebook. However, when using SSH to connect AWS, warning message of unprotected private key file prompted out.



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0555 for 'YYF_Frankfurt.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "YYF_Frankfurt.pem": bad permissions
ec2-user@ec2-XX-XX-XXX-XX.eu-central-1.compute.amazonaws.com: Permission denied (publickey).


I followed the instruction and use chmod 400 to change permission. However, the permission did not change.



hkgyyf@LAPTOP-R3DDSPP0:/mnt/c/Users/Yuasto/Desktop/Trading$ chmod 400 YYF_Frankfurt.pem
hkgyyf@LAPTOP-R3DDSPP0:/mnt/c/Users/Yuasto/Desktop/Trading$ ls -l
-r-xr-xr-x 1 hkgyyf hkgyyf 1692 Mar 24 15:41 YYF_Frankfurt.pem


Googled a lot and still cant find solution. Please help







share|improve this question





















  • Try sudo chmod 400 ....
    – Jos
    2 days ago










  • @Jos no change even including sudo
    – hkgyyf
    2 days ago










  • Ah now I notice. Your pem key resides on a Windows drive which obviously doesn't use Linux-type permissions. Move your key to a Linux drive.
    – Jos
    2 days ago










  • Fat and ntfs do not use permissions
    – Panther
    2 days ago












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am about to prepare for using AWS Jupyter Notebook. However, when using SSH to connect AWS, warning message of unprotected private key file prompted out.



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0555 for 'YYF_Frankfurt.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "YYF_Frankfurt.pem": bad permissions
ec2-user@ec2-XX-XX-XXX-XX.eu-central-1.compute.amazonaws.com: Permission denied (publickey).


I followed the instruction and use chmod 400 to change permission. However, the permission did not change.



hkgyyf@LAPTOP-R3DDSPP0:/mnt/c/Users/Yuasto/Desktop/Trading$ chmod 400 YYF_Frankfurt.pem
hkgyyf@LAPTOP-R3DDSPP0:/mnt/c/Users/Yuasto/Desktop/Trading$ ls -l
-r-xr-xr-x 1 hkgyyf hkgyyf 1692 Mar 24 15:41 YYF_Frankfurt.pem


Googled a lot and still cant find solution. Please help







share|improve this question













I am about to prepare for using AWS Jupyter Notebook. However, when using SSH to connect AWS, warning message of unprotected private key file prompted out.



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0555 for 'YYF_Frankfurt.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "YYF_Frankfurt.pem": bad permissions
ec2-user@ec2-XX-XX-XXX-XX.eu-central-1.compute.amazonaws.com: Permission denied (publickey).


I followed the instruction and use chmod 400 to change permission. However, the permission did not change.



hkgyyf@LAPTOP-R3DDSPP0:/mnt/c/Users/Yuasto/Desktop/Trading$ chmod 400 YYF_Frankfurt.pem
hkgyyf@LAPTOP-R3DDSPP0:/mnt/c/Users/Yuasto/Desktop/Trading$ ls -l
-r-xr-xr-x 1 hkgyyf hkgyyf 1692 Mar 24 15:41 YYF_Frankfurt.pem


Googled a lot and still cant find solution. Please help









share|improve this question












share|improve this question




share|improve this question








edited 2 days ago









Byte Commander

57.4k26152261




57.4k26152261









asked 2 days ago









hkgyyf

1




1











  • Try sudo chmod 400 ....
    – Jos
    2 days ago










  • @Jos no change even including sudo
    – hkgyyf
    2 days ago










  • Ah now I notice. Your pem key resides on a Windows drive which obviously doesn't use Linux-type permissions. Move your key to a Linux drive.
    – Jos
    2 days ago










  • Fat and ntfs do not use permissions
    – Panther
    2 days ago
















  • Try sudo chmod 400 ....
    – Jos
    2 days ago










  • @Jos no change even including sudo
    – hkgyyf
    2 days ago










  • Ah now I notice. Your pem key resides on a Windows drive which obviously doesn't use Linux-type permissions. Move your key to a Linux drive.
    – Jos
    2 days ago










  • Fat and ntfs do not use permissions
    – Panther
    2 days ago















Try sudo chmod 400 ....
– Jos
2 days ago




Try sudo chmod 400 ....
– Jos
2 days ago












@Jos no change even including sudo
– hkgyyf
2 days ago




@Jos no change even including sudo
– hkgyyf
2 days ago












Ah now I notice. Your pem key resides on a Windows drive which obviously doesn't use Linux-type permissions. Move your key to a Linux drive.
– Jos
2 days ago




Ah now I notice. Your pem key resides on a Windows drive which obviously doesn't use Linux-type permissions. Move your key to a Linux drive.
– Jos
2 days ago












Fat and ntfs do not use permissions
– Panther
2 days ago




Fat and ntfs do not use permissions
– Panther
2 days ago















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1062038%2fcannot-change-file-permission-after-chmod-400%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1062038%2fcannot-change-file-permission-after-chmod-400%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error