Permission denied to access public ssh key
up vote
0
down vote
favorite
I can't add my ssh public key to the ssh-agent and my ssh folder is odd I believe.here is a screenshot
18.04 ssh ssh-agent
add a comment |
up vote
0
down vote
favorite
I can't add my ssh public key to the ssh-agent and my ssh folder is odd I believe.here is a screenshot
18.04 ssh ssh-agent
What is the output fromls -lad /home/maydara/.ssh /home/maydata
andid
– mdpc
Dec 5 at 1:09
@mdpc drwxr-xr-x 38 maydara maydara 4096 Dec 5 02:20 /home/maydara drw------- 2 maydara maydara 4096 Dec 5 00:54 /home/maydara/.ssh
– Getsuga
Dec 5 at 1:21
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I can't add my ssh public key to the ssh-agent and my ssh folder is odd I believe.here is a screenshot
18.04 ssh ssh-agent
I can't add my ssh public key to the ssh-agent and my ssh folder is odd I believe.here is a screenshot
18.04 ssh ssh-agent
18.04 ssh ssh-agent
asked Dec 5 at 0:40
Getsuga
3114
3114
What is the output fromls -lad /home/maydara/.ssh /home/maydata
andid
– mdpc
Dec 5 at 1:09
@mdpc drwxr-xr-x 38 maydara maydara 4096 Dec 5 02:20 /home/maydara drw------- 2 maydara maydara 4096 Dec 5 00:54 /home/maydara/.ssh
– Getsuga
Dec 5 at 1:21
add a comment |
What is the output fromls -lad /home/maydara/.ssh /home/maydata
andid
– mdpc
Dec 5 at 1:09
@mdpc drwxr-xr-x 38 maydara maydara 4096 Dec 5 02:20 /home/maydara drw------- 2 maydara maydara 4096 Dec 5 00:54 /home/maydara/.ssh
– Getsuga
Dec 5 at 1:21
What is the output from
ls -lad /home/maydara/.ssh /home/maydata
and id
– mdpc
Dec 5 at 1:09
What is the output from
ls -lad /home/maydara/.ssh /home/maydata
and id
– mdpc
Dec 5 at 1:09
@mdpc drwxr-xr-x 38 maydara maydara 4096 Dec 5 02:20 /home/maydara drw------- 2 maydara maydara 4096 Dec 5 00:54 /home/maydara/.ssh
– Getsuga
Dec 5 at 1:21
@mdpc drwxr-xr-x 38 maydara maydara 4096 Dec 5 02:20 /home/maydara drw------- 2 maydara maydara 4096 Dec 5 00:54 /home/maydara/.ssh
– Getsuga
Dec 5 at 1:21
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
The fix is chmod 700 /home/maydara/.ssh
Without the 'x' permission, a directory cannot be searched (i.e. files in directory cannot be found).
@Mbpc i've tried this before i wrote this post and it didn't work, I ended up deleting the whole folder and the keys then I started from scratch.
– Getsuga
Dec 5 at 20:21
@Getsuga You might like to add that as an answer. :-)
– Kulfy
2 days ago
@Kulfy thx for the suggestion but what i've done is not really a fix, it's a rebuild from scratch and that won't be helpful for people who don't have copies of their ssh keys.
– Getsuga
2 days ago
@Getsuga Answer section is meant for posting things which solved the problem. I've seen many a times people do post a re-installation as their answer (since they solved their problem by re-installation). Your solution might help those who have copies. So, please write that as an answer and mark that answer as accepted. :-)
– Kulfy
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
The fix is chmod 700 /home/maydara/.ssh
Without the 'x' permission, a directory cannot be searched (i.e. files in directory cannot be found).
@Mbpc i've tried this before i wrote this post and it didn't work, I ended up deleting the whole folder and the keys then I started from scratch.
– Getsuga
Dec 5 at 20:21
@Getsuga You might like to add that as an answer. :-)
– Kulfy
2 days ago
@Kulfy thx for the suggestion but what i've done is not really a fix, it's a rebuild from scratch and that won't be helpful for people who don't have copies of their ssh keys.
– Getsuga
2 days ago
@Getsuga Answer section is meant for posting things which solved the problem. I've seen many a times people do post a re-installation as their answer (since they solved their problem by re-installation). Your solution might help those who have copies. So, please write that as an answer and mark that answer as accepted. :-)
– Kulfy
2 days ago
add a comment |
up vote
1
down vote
The fix is chmod 700 /home/maydara/.ssh
Without the 'x' permission, a directory cannot be searched (i.e. files in directory cannot be found).
@Mbpc i've tried this before i wrote this post and it didn't work, I ended up deleting the whole folder and the keys then I started from scratch.
– Getsuga
Dec 5 at 20:21
@Getsuga You might like to add that as an answer. :-)
– Kulfy
2 days ago
@Kulfy thx for the suggestion but what i've done is not really a fix, it's a rebuild from scratch and that won't be helpful for people who don't have copies of their ssh keys.
– Getsuga
2 days ago
@Getsuga Answer section is meant for posting things which solved the problem. I've seen many a times people do post a re-installation as their answer (since they solved their problem by re-installation). Your solution might help those who have copies. So, please write that as an answer and mark that answer as accepted. :-)
– Kulfy
2 days ago
add a comment |
up vote
1
down vote
up vote
1
down vote
The fix is chmod 700 /home/maydara/.ssh
Without the 'x' permission, a directory cannot be searched (i.e. files in directory cannot be found).
The fix is chmod 700 /home/maydara/.ssh
Without the 'x' permission, a directory cannot be searched (i.e. files in directory cannot be found).
edited Dec 5 at 19:07
Kulfy
2,45521033
2,45521033
answered Dec 5 at 19:02
mdpc
8161818
8161818
@Mbpc i've tried this before i wrote this post and it didn't work, I ended up deleting the whole folder and the keys then I started from scratch.
– Getsuga
Dec 5 at 20:21
@Getsuga You might like to add that as an answer. :-)
– Kulfy
2 days ago
@Kulfy thx for the suggestion but what i've done is not really a fix, it's a rebuild from scratch and that won't be helpful for people who don't have copies of their ssh keys.
– Getsuga
2 days ago
@Getsuga Answer section is meant for posting things which solved the problem. I've seen many a times people do post a re-installation as their answer (since they solved their problem by re-installation). Your solution might help those who have copies. So, please write that as an answer and mark that answer as accepted. :-)
– Kulfy
2 days ago
add a comment |
@Mbpc i've tried this before i wrote this post and it didn't work, I ended up deleting the whole folder and the keys then I started from scratch.
– Getsuga
Dec 5 at 20:21
@Getsuga You might like to add that as an answer. :-)
– Kulfy
2 days ago
@Kulfy thx for the suggestion but what i've done is not really a fix, it's a rebuild from scratch and that won't be helpful for people who don't have copies of their ssh keys.
– Getsuga
2 days ago
@Getsuga Answer section is meant for posting things which solved the problem. I've seen many a times people do post a re-installation as their answer (since they solved their problem by re-installation). Your solution might help those who have copies. So, please write that as an answer and mark that answer as accepted. :-)
– Kulfy
2 days ago
@Mbpc i've tried this before i wrote this post and it didn't work, I ended up deleting the whole folder and the keys then I started from scratch.
– Getsuga
Dec 5 at 20:21
@Mbpc i've tried this before i wrote this post and it didn't work, I ended up deleting the whole folder and the keys then I started from scratch.
– Getsuga
Dec 5 at 20:21
@Getsuga You might like to add that as an answer. :-)
– Kulfy
2 days ago
@Getsuga You might like to add that as an answer. :-)
– Kulfy
2 days ago
@Kulfy thx for the suggestion but what i've done is not really a fix, it's a rebuild from scratch and that won't be helpful for people who don't have copies of their ssh keys.
– Getsuga
2 days ago
@Kulfy thx for the suggestion but what i've done is not really a fix, it's a rebuild from scratch and that won't be helpful for people who don't have copies of their ssh keys.
– Getsuga
2 days ago
@Getsuga Answer section is meant for posting things which solved the problem. I've seen many a times people do post a re-installation as their answer (since they solved their problem by re-installation). Your solution might help those who have copies. So, please write that as an answer and mark that answer as accepted. :-)
– Kulfy
2 days ago
@Getsuga Answer section is meant for posting things which solved the problem. I've seen many a times people do post a re-installation as their answer (since they solved their problem by re-installation). Your solution might help those who have copies. So, please write that as an answer and mark that answer as accepted. :-)
– Kulfy
2 days ago
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2faskubuntu.com%2fquestions%2f1098523%2fpermission-denied-to-access-public-ssh-key%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
What is the output from
ls -lad /home/maydara/.ssh /home/maydata
andid
– mdpc
Dec 5 at 1:09
@mdpc drwxr-xr-x 38 maydara maydara 4096 Dec 5 02:20 /home/maydara drw------- 2 maydara maydara 4096 Dec 5 00:54 /home/maydara/.ssh
– Getsuga
Dec 5 at 1:21