Laravel Forge Public Key Access Denied












0















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!!!










share|improve this question



























    0















    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!!!










    share|improve this question

























      0












      0








      0








      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!!!










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 28 '18 at 4:01









      TJ WeemsTJ Weems

      157110




      157110
























          1 Answer
          1






          active

          oldest

          votes


















          0














          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






          share|improve this answer























            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            0














            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






            share|improve this answer




























              0














              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






              share|improve this answer


























                0












                0








                0







                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






                share|improve this answer













                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







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 28 '18 at 4:43









                TJ WeemsTJ Weems

                157110




                157110
































                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

                    Calculate evaluation metrics using cross_val_predict sklearn

                    Insert data from modal to MySQL (multiple modal on website)