What is the default username for Amazon AMI images of Ubuntu Server?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







32















I just launched one of the Ubuntu Server AMI's on Amazon EC2.



I connect just fine, but I don't see anything to tell me the default login credentials.



login as: ?









share|improve this question





























    32















    I just launched one of the Ubuntu Server AMI's on Amazon EC2.



    I connect just fine, but I don't see anything to tell me the default login credentials.



    login as: ?









    share|improve this question

























      32












      32








      32


      5






      I just launched one of the Ubuntu Server AMI's on Amazon EC2.



      I connect just fine, but I don't see anything to tell me the default login credentials.



      login as: ?









      share|improve this question














      I just launched one of the Ubuntu Server AMI's on Amazon EC2.



      I connect just fine, but I don't see anything to tell me the default login credentials.



      login as: ?






      server login amazon-ec2






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 22 '11 at 20:00









      David ParksDavid Parks

      1,07882442




      1,07882442






















          5 Answers
          5






          active

          oldest

          votes


















          34














          On EC2 all the Ubuntu AMI's should be connected to like so:



          $ ssh -i your-ssh-key.pem ubuntu@external.dns.name



          So you connect as the 'ubuntu' user using the ssh key you injected into the instance at launch (not a password). Once authenticated, you can issue password-less root commands with sudo.



          (note: your ssh key might be .priv, or .pem, or no extension, this is just an example)



          Here are also some handy resources about connecting to EC2 instances:



          Launching an instance and choosing or creating a new SSH keypair: http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/index.html?LaunchInstance.html



          Connecting with your ssh keypair:
          http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/index.html?ConnectToInstanceLinux.html



          What they don't mention there is that you connect to Ubuntu instances with the 'ubuntu' account and not root.






          share|improve this answer


























          • How do I determine "external.dns.name"? I've tried the public DNS, the text as you wrote it, etc. without success.

            – David Parks
            Sep 22 '11 at 20:24













          • I'm using PuTTY to connect, I've connected to other linux instances, but every attempt at logging in as ubuntu, or ubuntu@anything_I_can_think_of fails, I'm clearly missing some detail.

            – David Parks
            Sep 22 '11 at 20:31











          • Yes. You when you look at the properties of your instance, you should take the "Public DNS" to use for the hostname.

            – Mark Russell
            Sep 22 '11 at 20:31











          • In PuTTY, ubuntu is the user name, there is no password, and "Public DNS" is the host to connect to. Apparently you need to convert the .pem file you get from Amazon when you create your keypair. The details of that are on the second AWS doc I posted.

            – Mark Russell
            Sep 22 '11 at 20:35






          • 1





            I've got it now, it's just 'ubuntu' user and the key, when done correctly it works fine as you said. Thanks very much for the help!

            – David Parks
            Sep 22 '11 at 20:43





















          8














          Extra tips:





          1. I prefer to type ssh ubuntu@host instead of ssh -i your-ssh-key.pem ubuntu@host.



            I wrote an article that describes how to do this:




            Uploading Personal ssh Keys to Amazon EC2
            http://alestic.com/2010/10/ec2-ssh-keys





          2. If you're always logging in to EC2 hosts using ubuntu you can even make that the default for when you use the standard EC2 instance public host name. This lets you just type ssh hostname. To do this, edit $HOME/.ssh/config and add a section like:



            Host *.amazonaws.com
            User ubuntu







          share|improve this answer


























          • Nice! Thanks, Eric. I've just kind of lived with my way. It appears I should go back and scour your blog again. Sweet.

            – Mark Russell
            Sep 23 '11 at 0:26



















          3














          As a further option, if you don't want to use personal ssh keys (although probably the best solution) but want to simplify the command line, add your key to ~/.ssh/ and add the following to ~/.ssh/config:



          Host ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com
          User ubuntu
          IdentityFile ~/.ssh/yourkey.pem


          Then you can simply use ssh ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com



          If you have your EC2 registered to a domain then you can also use the following:



          Host yourdomain.com
          User ubuntu
          IdentityFile ~/.ssh/yourkey.pem


          Then you can use ssh yourdomain.com



          Finally, to simplify it without a domain, use an alias as follows:



          Host myalias
          HostName ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com
          User ubuntu
          IdentityFile ~/.ssh/yourkey.pem


          Then you can use ssh myalias






          share|improve this answer































            2














            For community AMIs created by Bitnami, the username is 'bitnami'.



            Here's the section in Bitnami's Quick Start Guide, for reference:



            How to log into the BitNami Virtual Machine.






            share|improve this answer


























            • ? No mention of bitnami in the original....

              – belacqua
              May 28 '14 at 0:51








            • 2





              There are lots of 'Amazon AMIs' available that run ubuntu servers. They are not all setup for 'ubuntu' user. I had the exact problem myself. The answers above did not apply to the 'Amazon AMI' that I chose, which was a turnkey Plone deployment. I am sure there will be many other Community AMIs whose logins aren't obvious. In fact, I could have asked the same question and it would have worded exactly the same way the op did.

              – Octopus
              May 28 '14 at 17:44













            • As the question was from 2011 and has an accepted answer, I don't find it plausible that 'many other community AMIs' were in the scope. This was almost certainly based on the 'official' Ubuntu image. If it was a non-Canonical image, then the question should have been clarified.

              – belacqua
              May 28 '14 at 23:35








            • 1





              I googled it in 2014 and it was at the top. It took me a long time to find the right answer and this site is here for answers. The next person who is looking will find it. It is still relevant. I'm doing my job of keeping the site current and its users informed. You're welcome.

              – Octopus
              May 30 '14 at 15:21













            • IMO, it should be a new question and answer. Seems valid ; I'd certainly up-vote it.

              – belacqua
              May 30 '14 at 16:14





















            1














            The nologin script on the root user tells you (via ssh -i pem.pem root@<private.ip.ec2.instance>) which user you should use instead.



            In some AMI images that is ec2-user. So ssh -i pem.pem ec2-user@private.ip.ec2.instance
            In ubuntu AMI images that is ubuntu.
            Then in managed instances it's different again; EMR nodes have hadoop.



            YMMV therefore check with trying root.






            share|improve this answer


























              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',
              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%2faskubuntu.com%2fquestions%2f62599%2fwhat-is-the-default-username-for-amazon-ami-images-of-ubuntu-server%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              5 Answers
              5






              active

              oldest

              votes








              5 Answers
              5






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              34














              On EC2 all the Ubuntu AMI's should be connected to like so:



              $ ssh -i your-ssh-key.pem ubuntu@external.dns.name



              So you connect as the 'ubuntu' user using the ssh key you injected into the instance at launch (not a password). Once authenticated, you can issue password-less root commands with sudo.



              (note: your ssh key might be .priv, or .pem, or no extension, this is just an example)



              Here are also some handy resources about connecting to EC2 instances:



              Launching an instance and choosing or creating a new SSH keypair: http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/index.html?LaunchInstance.html



              Connecting with your ssh keypair:
              http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/index.html?ConnectToInstanceLinux.html



              What they don't mention there is that you connect to Ubuntu instances with the 'ubuntu' account and not root.






              share|improve this answer


























              • How do I determine "external.dns.name"? I've tried the public DNS, the text as you wrote it, etc. without success.

                – David Parks
                Sep 22 '11 at 20:24













              • I'm using PuTTY to connect, I've connected to other linux instances, but every attempt at logging in as ubuntu, or ubuntu@anything_I_can_think_of fails, I'm clearly missing some detail.

                – David Parks
                Sep 22 '11 at 20:31











              • Yes. You when you look at the properties of your instance, you should take the "Public DNS" to use for the hostname.

                – Mark Russell
                Sep 22 '11 at 20:31











              • In PuTTY, ubuntu is the user name, there is no password, and "Public DNS" is the host to connect to. Apparently you need to convert the .pem file you get from Amazon when you create your keypair. The details of that are on the second AWS doc I posted.

                – Mark Russell
                Sep 22 '11 at 20:35






              • 1





                I've got it now, it's just 'ubuntu' user and the key, when done correctly it works fine as you said. Thanks very much for the help!

                – David Parks
                Sep 22 '11 at 20:43


















              34














              On EC2 all the Ubuntu AMI's should be connected to like so:



              $ ssh -i your-ssh-key.pem ubuntu@external.dns.name



              So you connect as the 'ubuntu' user using the ssh key you injected into the instance at launch (not a password). Once authenticated, you can issue password-less root commands with sudo.



              (note: your ssh key might be .priv, or .pem, or no extension, this is just an example)



              Here are also some handy resources about connecting to EC2 instances:



              Launching an instance and choosing or creating a new SSH keypair: http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/index.html?LaunchInstance.html



              Connecting with your ssh keypair:
              http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/index.html?ConnectToInstanceLinux.html



              What they don't mention there is that you connect to Ubuntu instances with the 'ubuntu' account and not root.






              share|improve this answer


























              • How do I determine "external.dns.name"? I've tried the public DNS, the text as you wrote it, etc. without success.

                – David Parks
                Sep 22 '11 at 20:24













              • I'm using PuTTY to connect, I've connected to other linux instances, but every attempt at logging in as ubuntu, or ubuntu@anything_I_can_think_of fails, I'm clearly missing some detail.

                – David Parks
                Sep 22 '11 at 20:31











              • Yes. You when you look at the properties of your instance, you should take the "Public DNS" to use for the hostname.

                – Mark Russell
                Sep 22 '11 at 20:31











              • In PuTTY, ubuntu is the user name, there is no password, and "Public DNS" is the host to connect to. Apparently you need to convert the .pem file you get from Amazon when you create your keypair. The details of that are on the second AWS doc I posted.

                – Mark Russell
                Sep 22 '11 at 20:35






              • 1





                I've got it now, it's just 'ubuntu' user and the key, when done correctly it works fine as you said. Thanks very much for the help!

                – David Parks
                Sep 22 '11 at 20:43
















              34












              34








              34







              On EC2 all the Ubuntu AMI's should be connected to like so:



              $ ssh -i your-ssh-key.pem ubuntu@external.dns.name



              So you connect as the 'ubuntu' user using the ssh key you injected into the instance at launch (not a password). Once authenticated, you can issue password-less root commands with sudo.



              (note: your ssh key might be .priv, or .pem, or no extension, this is just an example)



              Here are also some handy resources about connecting to EC2 instances:



              Launching an instance and choosing or creating a new SSH keypair: http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/index.html?LaunchInstance.html



              Connecting with your ssh keypair:
              http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/index.html?ConnectToInstanceLinux.html



              What they don't mention there is that you connect to Ubuntu instances with the 'ubuntu' account and not root.






              share|improve this answer















              On EC2 all the Ubuntu AMI's should be connected to like so:



              $ ssh -i your-ssh-key.pem ubuntu@external.dns.name



              So you connect as the 'ubuntu' user using the ssh key you injected into the instance at launch (not a password). Once authenticated, you can issue password-less root commands with sudo.



              (note: your ssh key might be .priv, or .pem, or no extension, this is just an example)



              Here are also some handy resources about connecting to EC2 instances:



              Launching an instance and choosing or creating a new SSH keypair: http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/index.html?LaunchInstance.html



              Connecting with your ssh keypair:
              http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/index.html?ConnectToInstanceLinux.html



              What they don't mention there is that you connect to Ubuntu instances with the 'ubuntu' account and not root.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Sep 22 '11 at 20:26

























              answered Sep 22 '11 at 20:15









              Mark RussellMark Russell

              6,88323135




              6,88323135













              • How do I determine "external.dns.name"? I've tried the public DNS, the text as you wrote it, etc. without success.

                – David Parks
                Sep 22 '11 at 20:24













              • I'm using PuTTY to connect, I've connected to other linux instances, but every attempt at logging in as ubuntu, or ubuntu@anything_I_can_think_of fails, I'm clearly missing some detail.

                – David Parks
                Sep 22 '11 at 20:31











              • Yes. You when you look at the properties of your instance, you should take the "Public DNS" to use for the hostname.

                – Mark Russell
                Sep 22 '11 at 20:31











              • In PuTTY, ubuntu is the user name, there is no password, and "Public DNS" is the host to connect to. Apparently you need to convert the .pem file you get from Amazon when you create your keypair. The details of that are on the second AWS doc I posted.

                – Mark Russell
                Sep 22 '11 at 20:35






              • 1





                I've got it now, it's just 'ubuntu' user and the key, when done correctly it works fine as you said. Thanks very much for the help!

                – David Parks
                Sep 22 '11 at 20:43





















              • How do I determine "external.dns.name"? I've tried the public DNS, the text as you wrote it, etc. without success.

                – David Parks
                Sep 22 '11 at 20:24













              • I'm using PuTTY to connect, I've connected to other linux instances, but every attempt at logging in as ubuntu, or ubuntu@anything_I_can_think_of fails, I'm clearly missing some detail.

                – David Parks
                Sep 22 '11 at 20:31











              • Yes. You when you look at the properties of your instance, you should take the "Public DNS" to use for the hostname.

                – Mark Russell
                Sep 22 '11 at 20:31











              • In PuTTY, ubuntu is the user name, there is no password, and "Public DNS" is the host to connect to. Apparently you need to convert the .pem file you get from Amazon when you create your keypair. The details of that are on the second AWS doc I posted.

                – Mark Russell
                Sep 22 '11 at 20:35






              • 1





                I've got it now, it's just 'ubuntu' user and the key, when done correctly it works fine as you said. Thanks very much for the help!

                – David Parks
                Sep 22 '11 at 20:43



















              How do I determine "external.dns.name"? I've tried the public DNS, the text as you wrote it, etc. without success.

              – David Parks
              Sep 22 '11 at 20:24







              How do I determine "external.dns.name"? I've tried the public DNS, the text as you wrote it, etc. without success.

              – David Parks
              Sep 22 '11 at 20:24















              I'm using PuTTY to connect, I've connected to other linux instances, but every attempt at logging in as ubuntu, or ubuntu@anything_I_can_think_of fails, I'm clearly missing some detail.

              – David Parks
              Sep 22 '11 at 20:31





              I'm using PuTTY to connect, I've connected to other linux instances, but every attempt at logging in as ubuntu, or ubuntu@anything_I_can_think_of fails, I'm clearly missing some detail.

              – David Parks
              Sep 22 '11 at 20:31













              Yes. You when you look at the properties of your instance, you should take the "Public DNS" to use for the hostname.

              – Mark Russell
              Sep 22 '11 at 20:31





              Yes. You when you look at the properties of your instance, you should take the "Public DNS" to use for the hostname.

              – Mark Russell
              Sep 22 '11 at 20:31













              In PuTTY, ubuntu is the user name, there is no password, and "Public DNS" is the host to connect to. Apparently you need to convert the .pem file you get from Amazon when you create your keypair. The details of that are on the second AWS doc I posted.

              – Mark Russell
              Sep 22 '11 at 20:35





              In PuTTY, ubuntu is the user name, there is no password, and "Public DNS" is the host to connect to. Apparently you need to convert the .pem file you get from Amazon when you create your keypair. The details of that are on the second AWS doc I posted.

              – Mark Russell
              Sep 22 '11 at 20:35




              1




              1





              I've got it now, it's just 'ubuntu' user and the key, when done correctly it works fine as you said. Thanks very much for the help!

              – David Parks
              Sep 22 '11 at 20:43







              I've got it now, it's just 'ubuntu' user and the key, when done correctly it works fine as you said. Thanks very much for the help!

              – David Parks
              Sep 22 '11 at 20:43















              8














              Extra tips:





              1. I prefer to type ssh ubuntu@host instead of ssh -i your-ssh-key.pem ubuntu@host.



                I wrote an article that describes how to do this:




                Uploading Personal ssh Keys to Amazon EC2
                http://alestic.com/2010/10/ec2-ssh-keys





              2. If you're always logging in to EC2 hosts using ubuntu you can even make that the default for when you use the standard EC2 instance public host name. This lets you just type ssh hostname. To do this, edit $HOME/.ssh/config and add a section like:



                Host *.amazonaws.com
                User ubuntu







              share|improve this answer


























              • Nice! Thanks, Eric. I've just kind of lived with my way. It appears I should go back and scour your blog again. Sweet.

                – Mark Russell
                Sep 23 '11 at 0:26
















              8














              Extra tips:





              1. I prefer to type ssh ubuntu@host instead of ssh -i your-ssh-key.pem ubuntu@host.



                I wrote an article that describes how to do this:




                Uploading Personal ssh Keys to Amazon EC2
                http://alestic.com/2010/10/ec2-ssh-keys





              2. If you're always logging in to EC2 hosts using ubuntu you can even make that the default for when you use the standard EC2 instance public host name. This lets you just type ssh hostname. To do this, edit $HOME/.ssh/config and add a section like:



                Host *.amazonaws.com
                User ubuntu







              share|improve this answer


























              • Nice! Thanks, Eric. I've just kind of lived with my way. It appears I should go back and scour your blog again. Sweet.

                – Mark Russell
                Sep 23 '11 at 0:26














              8












              8








              8







              Extra tips:





              1. I prefer to type ssh ubuntu@host instead of ssh -i your-ssh-key.pem ubuntu@host.



                I wrote an article that describes how to do this:




                Uploading Personal ssh Keys to Amazon EC2
                http://alestic.com/2010/10/ec2-ssh-keys





              2. If you're always logging in to EC2 hosts using ubuntu you can even make that the default for when you use the standard EC2 instance public host name. This lets you just type ssh hostname. To do this, edit $HOME/.ssh/config and add a section like:



                Host *.amazonaws.com
                User ubuntu







              share|improve this answer















              Extra tips:





              1. I prefer to type ssh ubuntu@host instead of ssh -i your-ssh-key.pem ubuntu@host.



                I wrote an article that describes how to do this:




                Uploading Personal ssh Keys to Amazon EC2
                http://alestic.com/2010/10/ec2-ssh-keys





              2. If you're always logging in to EC2 hosts using ubuntu you can even make that the default for when you use the standard EC2 instance public host name. This lets you just type ssh hostname. To do this, edit $HOME/.ssh/config and add a section like:



                Host *.amazonaws.com
                User ubuntu








              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Sep 23 '11 at 0:22

























              answered Sep 23 '11 at 0:17









              Eric HammondEric Hammond

              1,134815




              1,134815













              • Nice! Thanks, Eric. I've just kind of lived with my way. It appears I should go back and scour your blog again. Sweet.

                – Mark Russell
                Sep 23 '11 at 0:26



















              • Nice! Thanks, Eric. I've just kind of lived with my way. It appears I should go back and scour your blog again. Sweet.

                – Mark Russell
                Sep 23 '11 at 0:26

















              Nice! Thanks, Eric. I've just kind of lived with my way. It appears I should go back and scour your blog again. Sweet.

              – Mark Russell
              Sep 23 '11 at 0:26





              Nice! Thanks, Eric. I've just kind of lived with my way. It appears I should go back and scour your blog again. Sweet.

              – Mark Russell
              Sep 23 '11 at 0:26











              3














              As a further option, if you don't want to use personal ssh keys (although probably the best solution) but want to simplify the command line, add your key to ~/.ssh/ and add the following to ~/.ssh/config:



              Host ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com
              User ubuntu
              IdentityFile ~/.ssh/yourkey.pem


              Then you can simply use ssh ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com



              If you have your EC2 registered to a domain then you can also use the following:



              Host yourdomain.com
              User ubuntu
              IdentityFile ~/.ssh/yourkey.pem


              Then you can use ssh yourdomain.com



              Finally, to simplify it without a domain, use an alias as follows:



              Host myalias
              HostName ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com
              User ubuntu
              IdentityFile ~/.ssh/yourkey.pem


              Then you can use ssh myalias






              share|improve this answer




























                3














                As a further option, if you don't want to use personal ssh keys (although probably the best solution) but want to simplify the command line, add your key to ~/.ssh/ and add the following to ~/.ssh/config:



                Host ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com
                User ubuntu
                IdentityFile ~/.ssh/yourkey.pem


                Then you can simply use ssh ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com



                If you have your EC2 registered to a domain then you can also use the following:



                Host yourdomain.com
                User ubuntu
                IdentityFile ~/.ssh/yourkey.pem


                Then you can use ssh yourdomain.com



                Finally, to simplify it without a domain, use an alias as follows:



                Host myalias
                HostName ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com
                User ubuntu
                IdentityFile ~/.ssh/yourkey.pem


                Then you can use ssh myalias






                share|improve this answer


























                  3












                  3








                  3







                  As a further option, if you don't want to use personal ssh keys (although probably the best solution) but want to simplify the command line, add your key to ~/.ssh/ and add the following to ~/.ssh/config:



                  Host ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com
                  User ubuntu
                  IdentityFile ~/.ssh/yourkey.pem


                  Then you can simply use ssh ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com



                  If you have your EC2 registered to a domain then you can also use the following:



                  Host yourdomain.com
                  User ubuntu
                  IdentityFile ~/.ssh/yourkey.pem


                  Then you can use ssh yourdomain.com



                  Finally, to simplify it without a domain, use an alias as follows:



                  Host myalias
                  HostName ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com
                  User ubuntu
                  IdentityFile ~/.ssh/yourkey.pem


                  Then you can use ssh myalias






                  share|improve this answer













                  As a further option, if you don't want to use personal ssh keys (although probably the best solution) but want to simplify the command line, add your key to ~/.ssh/ and add the following to ~/.ssh/config:



                  Host ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com
                  User ubuntu
                  IdentityFile ~/.ssh/yourkey.pem


                  Then you can simply use ssh ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com



                  If you have your EC2 registered to a domain then you can also use the following:



                  Host yourdomain.com
                  User ubuntu
                  IdentityFile ~/.ssh/yourkey.pem


                  Then you can use ssh yourdomain.com



                  Finally, to simplify it without a domain, use an alias as follows:



                  Host myalias
                  HostName ec2-xxx-xxx-xxx-xxx.xxxx.compute.amazonaws.com
                  User ubuntu
                  IdentityFile ~/.ssh/yourkey.pem


                  Then you can use ssh myalias







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 30 '14 at 19:45









                  zelanixzelanix

                  1312




                  1312























                      2














                      For community AMIs created by Bitnami, the username is 'bitnami'.



                      Here's the section in Bitnami's Quick Start Guide, for reference:



                      How to log into the BitNami Virtual Machine.






                      share|improve this answer


























                      • ? No mention of bitnami in the original....

                        – belacqua
                        May 28 '14 at 0:51








                      • 2





                        There are lots of 'Amazon AMIs' available that run ubuntu servers. They are not all setup for 'ubuntu' user. I had the exact problem myself. The answers above did not apply to the 'Amazon AMI' that I chose, which was a turnkey Plone deployment. I am sure there will be many other Community AMIs whose logins aren't obvious. In fact, I could have asked the same question and it would have worded exactly the same way the op did.

                        – Octopus
                        May 28 '14 at 17:44













                      • As the question was from 2011 and has an accepted answer, I don't find it plausible that 'many other community AMIs' were in the scope. This was almost certainly based on the 'official' Ubuntu image. If it was a non-Canonical image, then the question should have been clarified.

                        – belacqua
                        May 28 '14 at 23:35








                      • 1





                        I googled it in 2014 and it was at the top. It took me a long time to find the right answer and this site is here for answers. The next person who is looking will find it. It is still relevant. I'm doing my job of keeping the site current and its users informed. You're welcome.

                        – Octopus
                        May 30 '14 at 15:21













                      • IMO, it should be a new question and answer. Seems valid ; I'd certainly up-vote it.

                        – belacqua
                        May 30 '14 at 16:14


















                      2














                      For community AMIs created by Bitnami, the username is 'bitnami'.



                      Here's the section in Bitnami's Quick Start Guide, for reference:



                      How to log into the BitNami Virtual Machine.






                      share|improve this answer


























                      • ? No mention of bitnami in the original....

                        – belacqua
                        May 28 '14 at 0:51








                      • 2





                        There are lots of 'Amazon AMIs' available that run ubuntu servers. They are not all setup for 'ubuntu' user. I had the exact problem myself. The answers above did not apply to the 'Amazon AMI' that I chose, which was a turnkey Plone deployment. I am sure there will be many other Community AMIs whose logins aren't obvious. In fact, I could have asked the same question and it would have worded exactly the same way the op did.

                        – Octopus
                        May 28 '14 at 17:44













                      • As the question was from 2011 and has an accepted answer, I don't find it plausible that 'many other community AMIs' were in the scope. This was almost certainly based on the 'official' Ubuntu image. If it was a non-Canonical image, then the question should have been clarified.

                        – belacqua
                        May 28 '14 at 23:35








                      • 1





                        I googled it in 2014 and it was at the top. It took me a long time to find the right answer and this site is here for answers. The next person who is looking will find it. It is still relevant. I'm doing my job of keeping the site current and its users informed. You're welcome.

                        – Octopus
                        May 30 '14 at 15:21













                      • IMO, it should be a new question and answer. Seems valid ; I'd certainly up-vote it.

                        – belacqua
                        May 30 '14 at 16:14
















                      2












                      2








                      2







                      For community AMIs created by Bitnami, the username is 'bitnami'.



                      Here's the section in Bitnami's Quick Start Guide, for reference:



                      How to log into the BitNami Virtual Machine.






                      share|improve this answer















                      For community AMIs created by Bitnami, the username is 'bitnami'.



                      Here's the section in Bitnami's Quick Start Guide, for reference:



                      How to log into the BitNami Virtual Machine.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Jun 10 '14 at 19:41









                      belacqua

                      16k1474103




                      16k1474103










                      answered May 27 '14 at 20:30









                      OctopusOctopus

                      1237




                      1237













                      • ? No mention of bitnami in the original....

                        – belacqua
                        May 28 '14 at 0:51








                      • 2





                        There are lots of 'Amazon AMIs' available that run ubuntu servers. They are not all setup for 'ubuntu' user. I had the exact problem myself. The answers above did not apply to the 'Amazon AMI' that I chose, which was a turnkey Plone deployment. I am sure there will be many other Community AMIs whose logins aren't obvious. In fact, I could have asked the same question and it would have worded exactly the same way the op did.

                        – Octopus
                        May 28 '14 at 17:44













                      • As the question was from 2011 and has an accepted answer, I don't find it plausible that 'many other community AMIs' were in the scope. This was almost certainly based on the 'official' Ubuntu image. If it was a non-Canonical image, then the question should have been clarified.

                        – belacqua
                        May 28 '14 at 23:35








                      • 1





                        I googled it in 2014 and it was at the top. It took me a long time to find the right answer and this site is here for answers. The next person who is looking will find it. It is still relevant. I'm doing my job of keeping the site current and its users informed. You're welcome.

                        – Octopus
                        May 30 '14 at 15:21













                      • IMO, it should be a new question and answer. Seems valid ; I'd certainly up-vote it.

                        – belacqua
                        May 30 '14 at 16:14





















                      • ? No mention of bitnami in the original....

                        – belacqua
                        May 28 '14 at 0:51








                      • 2





                        There are lots of 'Amazon AMIs' available that run ubuntu servers. They are not all setup for 'ubuntu' user. I had the exact problem myself. The answers above did not apply to the 'Amazon AMI' that I chose, which was a turnkey Plone deployment. I am sure there will be many other Community AMIs whose logins aren't obvious. In fact, I could have asked the same question and it would have worded exactly the same way the op did.

                        – Octopus
                        May 28 '14 at 17:44













                      • As the question was from 2011 and has an accepted answer, I don't find it plausible that 'many other community AMIs' were in the scope. This was almost certainly based on the 'official' Ubuntu image. If it was a non-Canonical image, then the question should have been clarified.

                        – belacqua
                        May 28 '14 at 23:35








                      • 1





                        I googled it in 2014 and it was at the top. It took me a long time to find the right answer and this site is here for answers. The next person who is looking will find it. It is still relevant. I'm doing my job of keeping the site current and its users informed. You're welcome.

                        – Octopus
                        May 30 '14 at 15:21













                      • IMO, it should be a new question and answer. Seems valid ; I'd certainly up-vote it.

                        – belacqua
                        May 30 '14 at 16:14



















                      ? No mention of bitnami in the original....

                      – belacqua
                      May 28 '14 at 0:51







                      ? No mention of bitnami in the original....

                      – belacqua
                      May 28 '14 at 0:51






                      2




                      2





                      There are lots of 'Amazon AMIs' available that run ubuntu servers. They are not all setup for 'ubuntu' user. I had the exact problem myself. The answers above did not apply to the 'Amazon AMI' that I chose, which was a turnkey Plone deployment. I am sure there will be many other Community AMIs whose logins aren't obvious. In fact, I could have asked the same question and it would have worded exactly the same way the op did.

                      – Octopus
                      May 28 '14 at 17:44







                      There are lots of 'Amazon AMIs' available that run ubuntu servers. They are not all setup for 'ubuntu' user. I had the exact problem myself. The answers above did not apply to the 'Amazon AMI' that I chose, which was a turnkey Plone deployment. I am sure there will be many other Community AMIs whose logins aren't obvious. In fact, I could have asked the same question and it would have worded exactly the same way the op did.

                      – Octopus
                      May 28 '14 at 17:44















                      As the question was from 2011 and has an accepted answer, I don't find it plausible that 'many other community AMIs' were in the scope. This was almost certainly based on the 'official' Ubuntu image. If it was a non-Canonical image, then the question should have been clarified.

                      – belacqua
                      May 28 '14 at 23:35







                      As the question was from 2011 and has an accepted answer, I don't find it plausible that 'many other community AMIs' were in the scope. This was almost certainly based on the 'official' Ubuntu image. If it was a non-Canonical image, then the question should have been clarified.

                      – belacqua
                      May 28 '14 at 23:35






                      1




                      1





                      I googled it in 2014 and it was at the top. It took me a long time to find the right answer and this site is here for answers. The next person who is looking will find it. It is still relevant. I'm doing my job of keeping the site current and its users informed. You're welcome.

                      – Octopus
                      May 30 '14 at 15:21







                      I googled it in 2014 and it was at the top. It took me a long time to find the right answer and this site is here for answers. The next person who is looking will find it. It is still relevant. I'm doing my job of keeping the site current and its users informed. You're welcome.

                      – Octopus
                      May 30 '14 at 15:21















                      IMO, it should be a new question and answer. Seems valid ; I'd certainly up-vote it.

                      – belacqua
                      May 30 '14 at 16:14







                      IMO, it should be a new question and answer. Seems valid ; I'd certainly up-vote it.

                      – belacqua
                      May 30 '14 at 16:14













                      1














                      The nologin script on the root user tells you (via ssh -i pem.pem root@<private.ip.ec2.instance>) which user you should use instead.



                      In some AMI images that is ec2-user. So ssh -i pem.pem ec2-user@private.ip.ec2.instance
                      In ubuntu AMI images that is ubuntu.
                      Then in managed instances it's different again; EMR nodes have hadoop.



                      YMMV therefore check with trying root.






                      share|improve this answer






























                        1














                        The nologin script on the root user tells you (via ssh -i pem.pem root@<private.ip.ec2.instance>) which user you should use instead.



                        In some AMI images that is ec2-user. So ssh -i pem.pem ec2-user@private.ip.ec2.instance
                        In ubuntu AMI images that is ubuntu.
                        Then in managed instances it's different again; EMR nodes have hadoop.



                        YMMV therefore check with trying root.






                        share|improve this answer




























                          1












                          1








                          1







                          The nologin script on the root user tells you (via ssh -i pem.pem root@<private.ip.ec2.instance>) which user you should use instead.



                          In some AMI images that is ec2-user. So ssh -i pem.pem ec2-user@private.ip.ec2.instance
                          In ubuntu AMI images that is ubuntu.
                          Then in managed instances it's different again; EMR nodes have hadoop.



                          YMMV therefore check with trying root.






                          share|improve this answer















                          The nologin script on the root user tells you (via ssh -i pem.pem root@<private.ip.ec2.instance>) which user you should use instead.



                          In some AMI images that is ec2-user. So ssh -i pem.pem ec2-user@private.ip.ec2.instance
                          In ubuntu AMI images that is ubuntu.
                          Then in managed instances it's different again; EMR nodes have hadoop.



                          YMMV therefore check with trying root.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Mar 21 at 15:35

























                          answered Oct 25 '17 at 10:06









                          dlamblindlamblin

                          3872615




                          3872615






























                              draft saved

                              draft discarded




















































                              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.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f62599%2fwhat-is-the-default-username-for-amazon-ami-images-of-ubuntu-server%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

                              Category:香港粉麵

                              List *all* the tuples!

                              Channel [V]