Laravel Forge Public Key Access Denied
I am trying to ssh into my application from the command line however I am having issue with the ssh public key.
1st => I tried using PUTTTY to generate keys and save with appropriate name and extension id_rsa.pub
which seem to work great
2nd => I ran this command ~/.ssh/id_rsa.pub
to copy key and place it in the ssh key option on the laravel forge dashboard
3rd => I ran ssh forge@my_id_address
and it threw an alarm saying public key access denied
So then I found this website Click Here and followed the steps using the Git Bash command line to generate keys
The command ssh-keygen -t rsa -C "my_email@example.com"
which worked to generate keys however I was unable to create passphrase??
Next I pasted the public key in the laravel forge dashboard
And then I used ssh forge@my-ip-address -i ~/.ssh/your-key
as suggested and got the following alarm
Load key "/c/Users/username/.ssh/id_rsa.pub": invalid format
forge@my_ip_address: Permission denied (publickey).
I have seen this as a common issue I guess but no luck with suggested fixes, any help would be greatly appreciated!!!
laravel ssh-keys laravel-forge
add a comment |
I am trying to ssh into my application from the command line however I am having issue with the ssh public key.
1st => I tried using PUTTTY to generate keys and save with appropriate name and extension id_rsa.pub
which seem to work great
2nd => I ran this command ~/.ssh/id_rsa.pub
to copy key and place it in the ssh key option on the laravel forge dashboard
3rd => I ran ssh forge@my_id_address
and it threw an alarm saying public key access denied
So then I found this website Click Here and followed the steps using the Git Bash command line to generate keys
The command ssh-keygen -t rsa -C "my_email@example.com"
which worked to generate keys however I was unable to create passphrase??
Next I pasted the public key in the laravel forge dashboard
And then I used ssh forge@my-ip-address -i ~/.ssh/your-key
as suggested and got the following alarm
Load key "/c/Users/username/.ssh/id_rsa.pub": invalid format
forge@my_ip_address: Permission denied (publickey).
I have seen this as a common issue I guess but no luck with suggested fixes, any help would be greatly appreciated!!!
laravel ssh-keys laravel-forge
add a comment |
I am trying to ssh into my application from the command line however I am having issue with the ssh public key.
1st => I tried using PUTTTY to generate keys and save with appropriate name and extension id_rsa.pub
which seem to work great
2nd => I ran this command ~/.ssh/id_rsa.pub
to copy key and place it in the ssh key option on the laravel forge dashboard
3rd => I ran ssh forge@my_id_address
and it threw an alarm saying public key access denied
So then I found this website Click Here and followed the steps using the Git Bash command line to generate keys
The command ssh-keygen -t rsa -C "my_email@example.com"
which worked to generate keys however I was unable to create passphrase??
Next I pasted the public key in the laravel forge dashboard
And then I used ssh forge@my-ip-address -i ~/.ssh/your-key
as suggested and got the following alarm
Load key "/c/Users/username/.ssh/id_rsa.pub": invalid format
forge@my_ip_address: Permission denied (publickey).
I have seen this as a common issue I guess but no luck with suggested fixes, any help would be greatly appreciated!!!
laravel ssh-keys laravel-forge
I am trying to ssh into my application from the command line however I am having issue with the ssh public key.
1st => I tried using PUTTTY to generate keys and save with appropriate name and extension id_rsa.pub
which seem to work great
2nd => I ran this command ~/.ssh/id_rsa.pub
to copy key and place it in the ssh key option on the laravel forge dashboard
3rd => I ran ssh forge@my_id_address
and it threw an alarm saying public key access denied
So then I found this website Click Here and followed the steps using the Git Bash command line to generate keys
The command ssh-keygen -t rsa -C "my_email@example.com"
which worked to generate keys however I was unable to create passphrase??
Next I pasted the public key in the laravel forge dashboard
And then I used ssh forge@my-ip-address -i ~/.ssh/your-key
as suggested and got the following alarm
Load key "/c/Users/username/.ssh/id_rsa.pub": invalid format
forge@my_ip_address: Permission denied (publickey).
I have seen this as a common issue I guess but no luck with suggested fixes, any help would be greatly appreciated!!!
laravel ssh-keys laravel-forge
laravel ssh-keys laravel-forge
asked Nov 28 '18 at 4:01
TJ WeemsTJ Weems
157110
157110
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I had to use start-ssh-agent
. After that I was able to ssh into the application with the previous command ssh forge@my-ip-address -i ~/.ssh/id_rsa.pub
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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%2fstackoverflow.com%2fquestions%2f53511930%2flaravel-forge-public-key-access-denied%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
I had to use start-ssh-agent
. After that I was able to ssh into the application with the previous command ssh forge@my-ip-address -i ~/.ssh/id_rsa.pub
add a comment |
I had to use start-ssh-agent
. After that I was able to ssh into the application with the previous command ssh forge@my-ip-address -i ~/.ssh/id_rsa.pub
add a comment |
I had to use start-ssh-agent
. After that I was able to ssh into the application with the previous command ssh forge@my-ip-address -i ~/.ssh/id_rsa.pub
I had to use start-ssh-agent
. After that I was able to ssh into the application with the previous command ssh forge@my-ip-address -i ~/.ssh/id_rsa.pub
answered Nov 28 '18 at 4:43
TJ WeemsTJ Weems
157110
157110
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- 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%2fstackoverflow.com%2fquestions%2f53511930%2flaravel-forge-public-key-access-denied%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