Cannot change file permission after chmod 400
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
.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
permissions ssh chmod amazon-ec2
add a comment |Â
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
permissions ssh chmod amazon-ec2
Trysudo chmod 400 ...
.
â Jos
2 days ago
@Jos no change even including sudo
â hkgyyf
2 days ago
Ah now I notice. Yourpem
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
add a comment |Â
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
permissions ssh chmod amazon-ec2
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
permissions ssh chmod amazon-ec2
edited 2 days ago
![](https://i.stack.imgur.com/m8DYH.jpg?s=32&g=1)
![](https://i.stack.imgur.com/m8DYH.jpg?s=32&g=1)
Byte Commander
57.4k26152261
57.4k26152261
asked 2 days ago
hkgyyf
1
1
Trysudo chmod 400 ...
.
â Jos
2 days ago
@Jos no change even including sudo
â hkgyyf
2 days ago
Ah now I notice. Yourpem
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
add a comment |Â
Trysudo chmod 400 ...
.
â Jos
2 days ago
@Jos no change even including sudo
â hkgyyf
2 days ago
Ah now I notice. Yourpem
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
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