2 Replies Latest reply on Sep 18, 2012 3:51 PM by tiradani

    Cannot ssh to VM in EC2

    tiradani Newbie

      Hi,

       

      I am attempting to use Boxgrinder to build a Scientific Linux 5 AMI and have it automatically upload and register it.  Everything appears to work fine until I try to ssh to my running instance.  I saw https://community.jboss.org/thread/155934, however, I already have curl in the list of packages to install.  No errors appear in any logs, I am simply being rejected on the VM side.  I can launch and ssh to Amazon's public AMI, as well as old AMI's that I had previously hand rolled.  I really don't want to go back to that method

       

      Does anyone have suggestions as to what may be wrong?

       

      Thanks!

        • 1. Re: Cannot ssh to VM in EC2
          msavy Novice

          Hi Tiradani,

           

          Is this an x64 Scientifix Linux? Have you checked that you have put the image in the correct security group (i.e. ensure that the SSH ports are open)? Sometimes it takes a while for the logs to appear on the Amazon web UI. Perhaps wait 15 or 20 minutes and then have a look.

           

          Marc

          • 2. Re: Cannot ssh to VM in EC2
            tiradani Newbie

            Ok, I figured out the problem.  I included my own rc.local because I needed to do some service specific setup steps.  BoxGrinder appends to it.  The problem was that the rc.local file on my local box was not executable and BoxGrinder does not ensure that it is executable.  Once I added a line in the post section (chmod +x /etc/rc.d/rc.local) to ensure that it is executable, I was able to ssh in.

             

            Thank you for the help.  Your comment about the logs clued me in to the fact that rc.local wasn't executing because none of the output was being reported.