We can't access to jenkins from anywhere





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







3















We have just installed Jenkins on our server (Debian 7 wheezy). It works on local network, but not on extern network. We search but we don't find any workaround for this problem.



We can ping our server but when we go on the address for jenkins it doesn't work.










share|improve this question













migrated from stackoverflow.com Sep 3 '13 at 20:54


This question came from our site for professional and enthusiast programmers.



















  • Did you check your firewall settings?

    – Ulf Gitschthaler
    Sep 3 '13 at 15:14











  • Is Tomcat running on port 80 or is it fronted by Apache?

    – David Levesque
    Sep 3 '13 at 22:02











  • I think jenkins have his own container? No?

    – fische
    Sep 4 '13 at 23:43











  • It depends how you installed it.

    – David Levesque
    Sep 5 '13 at 0:32


















3















We have just installed Jenkins on our server (Debian 7 wheezy). It works on local network, but not on extern network. We search but we don't find any workaround for this problem.



We can ping our server but when we go on the address for jenkins it doesn't work.










share|improve this question













migrated from stackoverflow.com Sep 3 '13 at 20:54


This question came from our site for professional and enthusiast programmers.



















  • Did you check your firewall settings?

    – Ulf Gitschthaler
    Sep 3 '13 at 15:14











  • Is Tomcat running on port 80 or is it fronted by Apache?

    – David Levesque
    Sep 3 '13 at 22:02











  • I think jenkins have his own container? No?

    – fische
    Sep 4 '13 at 23:43











  • It depends how you installed it.

    – David Levesque
    Sep 5 '13 at 0:32














3












3








3


1






We have just installed Jenkins on our server (Debian 7 wheezy). It works on local network, but not on extern network. We search but we don't find any workaround for this problem.



We can ping our server but when we go on the address for jenkins it doesn't work.










share|improve this question














We have just installed Jenkins on our server (Debian 7 wheezy). It works on local network, but not on extern network. We search but we don't find any workaround for this problem.



We can ping our server but when we go on the address for jenkins it doesn't work.







java tomcat jenkins hudson debian






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 3 '13 at 15:11









fischefische

16112




16112




migrated from stackoverflow.com Sep 3 '13 at 20:54


This question came from our site for professional and enthusiast programmers.









migrated from stackoverflow.com Sep 3 '13 at 20:54


This question came from our site for professional and enthusiast programmers.















  • Did you check your firewall settings?

    – Ulf Gitschthaler
    Sep 3 '13 at 15:14











  • Is Tomcat running on port 80 or is it fronted by Apache?

    – David Levesque
    Sep 3 '13 at 22:02











  • I think jenkins have his own container? No?

    – fische
    Sep 4 '13 at 23:43











  • It depends how you installed it.

    – David Levesque
    Sep 5 '13 at 0:32



















  • Did you check your firewall settings?

    – Ulf Gitschthaler
    Sep 3 '13 at 15:14











  • Is Tomcat running on port 80 or is it fronted by Apache?

    – David Levesque
    Sep 3 '13 at 22:02











  • I think jenkins have his own container? No?

    – fische
    Sep 4 '13 at 23:43











  • It depends how you installed it.

    – David Levesque
    Sep 5 '13 at 0:32

















Did you check your firewall settings?

– Ulf Gitschthaler
Sep 3 '13 at 15:14





Did you check your firewall settings?

– Ulf Gitschthaler
Sep 3 '13 at 15:14













Is Tomcat running on port 80 or is it fronted by Apache?

– David Levesque
Sep 3 '13 at 22:02





Is Tomcat running on port 80 or is it fronted by Apache?

– David Levesque
Sep 3 '13 at 22:02













I think jenkins have his own container? No?

– fische
Sep 4 '13 at 23:43





I think jenkins have his own container? No?

– fische
Sep 4 '13 at 23:43













It depends how you installed it.

– David Levesque
Sep 5 '13 at 0:32





It depends how you installed it.

– David Levesque
Sep 5 '13 at 0:32










2 Answers
2






active

oldest

votes


















3














Probably because of the reasons below:



1) Your web server config



For apache: allow from all



For tomcat:



<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">


should be



<Host name="www.example.com" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">


2) Your firewall settings (open port for external connection)



3) Jenkins Config



Firstly, for Debien, modify /etc/default/jenkins, add a line HTTP_HOST=external address (e.g. HTTP_HOST=www.example.com)



Then, add --httpListenAddress=$HTTP_HOST to your JENKINS_ARGS (JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=$HTTP_HOST")



Finally, restart your jenkins






share|improve this answer


























  • We have a redmine with apache already install and it works good. And with the iptables -L command the result is: Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination So normaly all port are open. No?

    – fische
    Sep 3 '13 at 15:53











  • Try disable your firewall by: # /etc/init.d/iptables save # /etc/init.d/iptables stop Is your redmine accessible by external network? Is your jenkins and redmine are deployed the same web server? By default, Jenkins has its own standalone web server running on port 8080.

    – William LAM
    Sep 4 '13 at 1:34













  • Yes the redmine is always accessible by the external network. Redmine and Jenkins are not on the same server (ie Apache and tomcat). I really don't understand. Are there anything to change in the jenkin's configurationn ?

    – fische
    Sep 4 '13 at 15:25













  • If I change the port of jenkins to 80 (ie the port of redmine) and i stop the apache. Jenkins doen't work too.

    – fische
    Sep 4 '13 at 15:49













  • How about the jenkins config? under/etc/default/jenkins JENKINS_ARGS="--webroot=/var/run/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=$HTTP_HOST" $HTTP_HOST should not be localhost or 127.0.0.1

    – William LAM
    Sep 5 '13 at 1:10





















0














a) Open a Bash shell (Git Bash on Windows will do fine) on your home computer (not the Jenkins computer).



b) Perform a PORT FORWARD through a SECURE SSH TUNNEL to "map" port 8080 on the Jenkins computer to port 8080 on your home computer. The command to do this in the Git Bash shell is:



ssh -L 127.0.0.1:8080:localhost:8080 YourAdminName@xx.yyy.zzz.ab -i "C:PathToFolderContainingMySecretKey"



Here xx.yyy.zzz.ab is your public internet address (e.g., 62.187.151.9). Note that the path after -i is the path on your computer where you stored the private key which matches the public key you used on the Jenkins computer.



c) And now, on your home computer can connect like this:
http://localhost:8080



d) The first time you configure Jenkins you'll need the initial admin password. Here's how to get it. In the Git Bash shell on the home computer (remember, you have already connected via SSH to the Jenkins computer):



sudo cat /var/lib/jenkins/secrets/initialAdminPassword



Copy and paste it into your browser, and away you go!






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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%2fsuperuser.com%2fquestions%2f640578%2fwe-cant-access-to-jenkins-from-anywhere%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Probably because of the reasons below:



    1) Your web server config



    For apache: allow from all



    For tomcat:



    <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">


    should be



    <Host name="www.example.com" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">


    2) Your firewall settings (open port for external connection)



    3) Jenkins Config



    Firstly, for Debien, modify /etc/default/jenkins, add a line HTTP_HOST=external address (e.g. HTTP_HOST=www.example.com)



    Then, add --httpListenAddress=$HTTP_HOST to your JENKINS_ARGS (JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=$HTTP_HOST")



    Finally, restart your jenkins






    share|improve this answer


























    • We have a redmine with apache already install and it works good. And with the iptables -L command the result is: Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination So normaly all port are open. No?

      – fische
      Sep 3 '13 at 15:53











    • Try disable your firewall by: # /etc/init.d/iptables save # /etc/init.d/iptables stop Is your redmine accessible by external network? Is your jenkins and redmine are deployed the same web server? By default, Jenkins has its own standalone web server running on port 8080.

      – William LAM
      Sep 4 '13 at 1:34













    • Yes the redmine is always accessible by the external network. Redmine and Jenkins are not on the same server (ie Apache and tomcat). I really don't understand. Are there anything to change in the jenkin's configurationn ?

      – fische
      Sep 4 '13 at 15:25













    • If I change the port of jenkins to 80 (ie the port of redmine) and i stop the apache. Jenkins doen't work too.

      – fische
      Sep 4 '13 at 15:49













    • How about the jenkins config? under/etc/default/jenkins JENKINS_ARGS="--webroot=/var/run/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=$HTTP_HOST" $HTTP_HOST should not be localhost or 127.0.0.1

      – William LAM
      Sep 5 '13 at 1:10


















    3














    Probably because of the reasons below:



    1) Your web server config



    For apache: allow from all



    For tomcat:



    <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">


    should be



    <Host name="www.example.com" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">


    2) Your firewall settings (open port for external connection)



    3) Jenkins Config



    Firstly, for Debien, modify /etc/default/jenkins, add a line HTTP_HOST=external address (e.g. HTTP_HOST=www.example.com)



    Then, add --httpListenAddress=$HTTP_HOST to your JENKINS_ARGS (JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=$HTTP_HOST")



    Finally, restart your jenkins






    share|improve this answer


























    • We have a redmine with apache already install and it works good. And with the iptables -L command the result is: Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination So normaly all port are open. No?

      – fische
      Sep 3 '13 at 15:53











    • Try disable your firewall by: # /etc/init.d/iptables save # /etc/init.d/iptables stop Is your redmine accessible by external network? Is your jenkins and redmine are deployed the same web server? By default, Jenkins has its own standalone web server running on port 8080.

      – William LAM
      Sep 4 '13 at 1:34













    • Yes the redmine is always accessible by the external network. Redmine and Jenkins are not on the same server (ie Apache and tomcat). I really don't understand. Are there anything to change in the jenkin's configurationn ?

      – fische
      Sep 4 '13 at 15:25













    • If I change the port of jenkins to 80 (ie the port of redmine) and i stop the apache. Jenkins doen't work too.

      – fische
      Sep 4 '13 at 15:49













    • How about the jenkins config? under/etc/default/jenkins JENKINS_ARGS="--webroot=/var/run/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=$HTTP_HOST" $HTTP_HOST should not be localhost or 127.0.0.1

      – William LAM
      Sep 5 '13 at 1:10
















    3












    3








    3







    Probably because of the reasons below:



    1) Your web server config



    For apache: allow from all



    For tomcat:



    <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">


    should be



    <Host name="www.example.com" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">


    2) Your firewall settings (open port for external connection)



    3) Jenkins Config



    Firstly, for Debien, modify /etc/default/jenkins, add a line HTTP_HOST=external address (e.g. HTTP_HOST=www.example.com)



    Then, add --httpListenAddress=$HTTP_HOST to your JENKINS_ARGS (JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=$HTTP_HOST")



    Finally, restart your jenkins






    share|improve this answer















    Probably because of the reasons below:



    1) Your web server config



    For apache: allow from all



    For tomcat:



    <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">


    should be



    <Host name="www.example.com" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">


    2) Your firewall settings (open port for external connection)



    3) Jenkins Config



    Firstly, for Debien, modify /etc/default/jenkins, add a line HTTP_HOST=external address (e.g. HTTP_HOST=www.example.com)



    Then, add --httpListenAddress=$HTTP_HOST to your JENKINS_ARGS (JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=$HTTP_HOST")



    Finally, restart your jenkins







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Sep 5 '13 at 16:12

























    answered Sep 3 '13 at 15:27









    William LAMWilliam LAM

    1312




    1312













    • We have a redmine with apache already install and it works good. And with the iptables -L command the result is: Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination So normaly all port are open. No?

      – fische
      Sep 3 '13 at 15:53











    • Try disable your firewall by: # /etc/init.d/iptables save # /etc/init.d/iptables stop Is your redmine accessible by external network? Is your jenkins and redmine are deployed the same web server? By default, Jenkins has its own standalone web server running on port 8080.

      – William LAM
      Sep 4 '13 at 1:34













    • Yes the redmine is always accessible by the external network. Redmine and Jenkins are not on the same server (ie Apache and tomcat). I really don't understand. Are there anything to change in the jenkin's configurationn ?

      – fische
      Sep 4 '13 at 15:25













    • If I change the port of jenkins to 80 (ie the port of redmine) and i stop the apache. Jenkins doen't work too.

      – fische
      Sep 4 '13 at 15:49













    • How about the jenkins config? under/etc/default/jenkins JENKINS_ARGS="--webroot=/var/run/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=$HTTP_HOST" $HTTP_HOST should not be localhost or 127.0.0.1

      – William LAM
      Sep 5 '13 at 1:10





















    • We have a redmine with apache already install and it works good. And with the iptables -L command the result is: Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination So normaly all port are open. No?

      – fische
      Sep 3 '13 at 15:53











    • Try disable your firewall by: # /etc/init.d/iptables save # /etc/init.d/iptables stop Is your redmine accessible by external network? Is your jenkins and redmine are deployed the same web server? By default, Jenkins has its own standalone web server running on port 8080.

      – William LAM
      Sep 4 '13 at 1:34













    • Yes the redmine is always accessible by the external network. Redmine and Jenkins are not on the same server (ie Apache and tomcat). I really don't understand. Are there anything to change in the jenkin's configurationn ?

      – fische
      Sep 4 '13 at 15:25













    • If I change the port of jenkins to 80 (ie the port of redmine) and i stop the apache. Jenkins doen't work too.

      – fische
      Sep 4 '13 at 15:49













    • How about the jenkins config? under/etc/default/jenkins JENKINS_ARGS="--webroot=/var/run/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=$HTTP_HOST" $HTTP_HOST should not be localhost or 127.0.0.1

      – William LAM
      Sep 5 '13 at 1:10



















    We have a redmine with apache already install and it works good. And with the iptables -L command the result is: Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination So normaly all port are open. No?

    – fische
    Sep 3 '13 at 15:53





    We have a redmine with apache already install and it works good. And with the iptables -L command the result is: Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination So normaly all port are open. No?

    – fische
    Sep 3 '13 at 15:53













    Try disable your firewall by: # /etc/init.d/iptables save # /etc/init.d/iptables stop Is your redmine accessible by external network? Is your jenkins and redmine are deployed the same web server? By default, Jenkins has its own standalone web server running on port 8080.

    – William LAM
    Sep 4 '13 at 1:34







    Try disable your firewall by: # /etc/init.d/iptables save # /etc/init.d/iptables stop Is your redmine accessible by external network? Is your jenkins and redmine are deployed the same web server? By default, Jenkins has its own standalone web server running on port 8080.

    – William LAM
    Sep 4 '13 at 1:34















    Yes the redmine is always accessible by the external network. Redmine and Jenkins are not on the same server (ie Apache and tomcat). I really don't understand. Are there anything to change in the jenkin's configurationn ?

    – fische
    Sep 4 '13 at 15:25







    Yes the redmine is always accessible by the external network. Redmine and Jenkins are not on the same server (ie Apache and tomcat). I really don't understand. Are there anything to change in the jenkin's configurationn ?

    – fische
    Sep 4 '13 at 15:25















    If I change the port of jenkins to 80 (ie the port of redmine) and i stop the apache. Jenkins doen't work too.

    – fische
    Sep 4 '13 at 15:49







    If I change the port of jenkins to 80 (ie the port of redmine) and i stop the apache. Jenkins doen't work too.

    – fische
    Sep 4 '13 at 15:49















    How about the jenkins config? under/etc/default/jenkins JENKINS_ARGS="--webroot=/var/run/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=$HTTP_HOST" $HTTP_HOST should not be localhost or 127.0.0.1

    – William LAM
    Sep 5 '13 at 1:10







    How about the jenkins config? under/etc/default/jenkins JENKINS_ARGS="--webroot=/var/run/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=$HTTP_HOST" $HTTP_HOST should not be localhost or 127.0.0.1

    – William LAM
    Sep 5 '13 at 1:10















    0














    a) Open a Bash shell (Git Bash on Windows will do fine) on your home computer (not the Jenkins computer).



    b) Perform a PORT FORWARD through a SECURE SSH TUNNEL to "map" port 8080 on the Jenkins computer to port 8080 on your home computer. The command to do this in the Git Bash shell is:



    ssh -L 127.0.0.1:8080:localhost:8080 YourAdminName@xx.yyy.zzz.ab -i "C:PathToFolderContainingMySecretKey"



    Here xx.yyy.zzz.ab is your public internet address (e.g., 62.187.151.9). Note that the path after -i is the path on your computer where you stored the private key which matches the public key you used on the Jenkins computer.



    c) And now, on your home computer can connect like this:
    http://localhost:8080



    d) The first time you configure Jenkins you'll need the initial admin password. Here's how to get it. In the Git Bash shell on the home computer (remember, you have already connected via SSH to the Jenkins computer):



    sudo cat /var/lib/jenkins/secrets/initialAdminPassword



    Copy and paste it into your browser, and away you go!






    share|improve this answer




























      0














      a) Open a Bash shell (Git Bash on Windows will do fine) on your home computer (not the Jenkins computer).



      b) Perform a PORT FORWARD through a SECURE SSH TUNNEL to "map" port 8080 on the Jenkins computer to port 8080 on your home computer. The command to do this in the Git Bash shell is:



      ssh -L 127.0.0.1:8080:localhost:8080 YourAdminName@xx.yyy.zzz.ab -i "C:PathToFolderContainingMySecretKey"



      Here xx.yyy.zzz.ab is your public internet address (e.g., 62.187.151.9). Note that the path after -i is the path on your computer where you stored the private key which matches the public key you used on the Jenkins computer.



      c) And now, on your home computer can connect like this:
      http://localhost:8080



      d) The first time you configure Jenkins you'll need the initial admin password. Here's how to get it. In the Git Bash shell on the home computer (remember, you have already connected via SSH to the Jenkins computer):



      sudo cat /var/lib/jenkins/secrets/initialAdminPassword



      Copy and paste it into your browser, and away you go!






      share|improve this answer


























        0












        0








        0







        a) Open a Bash shell (Git Bash on Windows will do fine) on your home computer (not the Jenkins computer).



        b) Perform a PORT FORWARD through a SECURE SSH TUNNEL to "map" port 8080 on the Jenkins computer to port 8080 on your home computer. The command to do this in the Git Bash shell is:



        ssh -L 127.0.0.1:8080:localhost:8080 YourAdminName@xx.yyy.zzz.ab -i "C:PathToFolderContainingMySecretKey"



        Here xx.yyy.zzz.ab is your public internet address (e.g., 62.187.151.9). Note that the path after -i is the path on your computer where you stored the private key which matches the public key you used on the Jenkins computer.



        c) And now, on your home computer can connect like this:
        http://localhost:8080



        d) The first time you configure Jenkins you'll need the initial admin password. Here's how to get it. In the Git Bash shell on the home computer (remember, you have already connected via SSH to the Jenkins computer):



        sudo cat /var/lib/jenkins/secrets/initialAdminPassword



        Copy and paste it into your browser, and away you go!






        share|improve this answer













        a) Open a Bash shell (Git Bash on Windows will do fine) on your home computer (not the Jenkins computer).



        b) Perform a PORT FORWARD through a SECURE SSH TUNNEL to "map" port 8080 on the Jenkins computer to port 8080 on your home computer. The command to do this in the Git Bash shell is:



        ssh -L 127.0.0.1:8080:localhost:8080 YourAdminName@xx.yyy.zzz.ab -i "C:PathToFolderContainingMySecretKey"



        Here xx.yyy.zzz.ab is your public internet address (e.g., 62.187.151.9). Note that the path after -i is the path on your computer where you stored the private key which matches the public key you used on the Jenkins computer.



        c) And now, on your home computer can connect like this:
        http://localhost:8080



        d) The first time you configure Jenkins you'll need the initial admin password. Here's how to get it. In the Git Bash shell on the home computer (remember, you have already connected via SSH to the Jenkins computer):



        sudo cat /var/lib/jenkins/secrets/initialAdminPassword



        Copy and paste it into your browser, and away you go!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 27 '18 at 0:56









        GaryGary

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • 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%2fsuperuser.com%2fquestions%2f640578%2fwe-cant-access-to-jenkins-from-anywhere%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

            Сан-Квентин

            8-я гвардейская общевойсковая армия

            Алькесар