.ssh folder permitted to 777

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








up vote
2
down vote

favorite












I am using Ubuntu in AWS. By mistake, I was given the permission 777 to all subfolders of the main root directory. Changes also applied to the .ssh folder. Now I am unable to login AWS Instance by using SSH method. How can I change the permission of .ssh folder? Any help is appreciated.










share|improve this question



















  • 1




    So what access do you currently have to the server? It sounds like you are unable to SSH, do you have any other access?
    – Robby1212
    Feb 10 at 16:35






  • 2




    In that case you may need to contact the AWS tech line and ask them to reset your server if no other can be gained.
    – Robby1212
    Feb 10 at 16:38






  • 1




    @Robby1212 but data is most important. How can I recover data?
    – shah rushabh
    Feb 10 at 16:38







  • 1




    @shahrushabh recreate a instance and restore a backup. Backups are not optional when using a VPS. I am fairly certain you lost your data if you do not have a backup.
    – Rinzwind
    Feb 10 at 16:45







  • 2




    @shahrushabh a snapshof of the data BEFORE the chmod? ;-) If you do: recreate the instance, and mount your snapshot inside it.
    – Rinzwind
    Feb 10 at 16:48














up vote
2
down vote

favorite












I am using Ubuntu in AWS. By mistake, I was given the permission 777 to all subfolders of the main root directory. Changes also applied to the .ssh folder. Now I am unable to login AWS Instance by using SSH method. How can I change the permission of .ssh folder? Any help is appreciated.










share|improve this question



















  • 1




    So what access do you currently have to the server? It sounds like you are unable to SSH, do you have any other access?
    – Robby1212
    Feb 10 at 16:35






  • 2




    In that case you may need to contact the AWS tech line and ask them to reset your server if no other can be gained.
    – Robby1212
    Feb 10 at 16:38






  • 1




    @Robby1212 but data is most important. How can I recover data?
    – shah rushabh
    Feb 10 at 16:38







  • 1




    @shahrushabh recreate a instance and restore a backup. Backups are not optional when using a VPS. I am fairly certain you lost your data if you do not have a backup.
    – Rinzwind
    Feb 10 at 16:45







  • 2




    @shahrushabh a snapshof of the data BEFORE the chmod? ;-) If you do: recreate the instance, and mount your snapshot inside it.
    – Rinzwind
    Feb 10 at 16:48












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I am using Ubuntu in AWS. By mistake, I was given the permission 777 to all subfolders of the main root directory. Changes also applied to the .ssh folder. Now I am unable to login AWS Instance by using SSH method. How can I change the permission of .ssh folder? Any help is appreciated.










share|improve this question















I am using Ubuntu in AWS. By mistake, I was given the permission 777 to all subfolders of the main root directory. Changes also applied to the .ssh folder. Now I am unable to login AWS Instance by using SSH method. How can I change the permission of .ssh folder? Any help is appreciated.







16.04 ssh






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 10 at 16:40









Yufenyuy Veyeh Dider

879823




879823










asked Feb 10 at 16:33









shah rushabh

112




112







  • 1




    So what access do you currently have to the server? It sounds like you are unable to SSH, do you have any other access?
    – Robby1212
    Feb 10 at 16:35






  • 2




    In that case you may need to contact the AWS tech line and ask them to reset your server if no other can be gained.
    – Robby1212
    Feb 10 at 16:38






  • 1




    @Robby1212 but data is most important. How can I recover data?
    – shah rushabh
    Feb 10 at 16:38







  • 1




    @shahrushabh recreate a instance and restore a backup. Backups are not optional when using a VPS. I am fairly certain you lost your data if you do not have a backup.
    – Rinzwind
    Feb 10 at 16:45







  • 2




    @shahrushabh a snapshof of the data BEFORE the chmod? ;-) If you do: recreate the instance, and mount your snapshot inside it.
    – Rinzwind
    Feb 10 at 16:48












  • 1




    So what access do you currently have to the server? It sounds like you are unable to SSH, do you have any other access?
    – Robby1212
    Feb 10 at 16:35






  • 2




    In that case you may need to contact the AWS tech line and ask them to reset your server if no other can be gained.
    – Robby1212
    Feb 10 at 16:38






  • 1




    @Robby1212 but data is most important. How can I recover data?
    – shah rushabh
    Feb 10 at 16:38







  • 1




    @shahrushabh recreate a instance and restore a backup. Backups are not optional when using a VPS. I am fairly certain you lost your data if you do not have a backup.
    – Rinzwind
    Feb 10 at 16:45







  • 2




    @shahrushabh a snapshof of the data BEFORE the chmod? ;-) If you do: recreate the instance, and mount your snapshot inside it.
    – Rinzwind
    Feb 10 at 16:48







1




1




So what access do you currently have to the server? It sounds like you are unable to SSH, do you have any other access?
– Robby1212
Feb 10 at 16:35




So what access do you currently have to the server? It sounds like you are unable to SSH, do you have any other access?
– Robby1212
Feb 10 at 16:35




2




2




In that case you may need to contact the AWS tech line and ask them to reset your server if no other can be gained.
– Robby1212
Feb 10 at 16:38




In that case you may need to contact the AWS tech line and ask them to reset your server if no other can be gained.
– Robby1212
Feb 10 at 16:38




1




1




@Robby1212 but data is most important. How can I recover data?
– shah rushabh
Feb 10 at 16:38





@Robby1212 but data is most important. How can I recover data?
– shah rushabh
Feb 10 at 16:38





1




1




@shahrushabh recreate a instance and restore a backup. Backups are not optional when using a VPS. I am fairly certain you lost your data if you do not have a backup.
– Rinzwind
Feb 10 at 16:45





@shahrushabh recreate a instance and restore a backup. Backups are not optional when using a VPS. I am fairly certain you lost your data if you do not have a backup.
– Rinzwind
Feb 10 at 16:45





2




2




@shahrushabh a snapshof of the data BEFORE the chmod? ;-) If you do: recreate the instance, and mount your snapshot inside it.
– Rinzwind
Feb 10 at 16:48




@shahrushabh a snapshof of the data BEFORE the chmod? ;-) If you do: recreate the instance, and mount your snapshot inside it.
– Rinzwind
Feb 10 at 16:48















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%2f1004896%2fssh-folder-permitted-to-777%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%2f1004896%2fssh-folder-permitted-to-777%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

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

How do I move numbers in filenames, in a batch renaming operation?