Geo Manickam
2011-Dec-07 05:34 UTC
Deploying rails 3.1 application to amazon EC2 Instance with Capistrano from local git repository.
I am trying to deploy my rails application to EC2 Instance with Capistrano from local git repository as a "root" user. I am following this http://blog.bhushangahire.net/2010/02/17/setup-capistrano-to-deploy-rails-application-on-amazon-ec2-with-git/ url. I am having trouble with this step below. 5: Copy your SSH public key to your EC2 node $ scp -i ~/my-ec2-keypair ~/.ssh/id_rsa.pub root@ec2-xxx-xxx-xxx- xxx.compute-1.amazonaws.com:/root/.ssh/authorized_keys2 NOTE the filename authorized_keys2 – not authorized_keys!! How can I copy my public key to EC2? when i tried to run command i also get "Please login as the ec2-user user rather than root user." any help on this appreciated. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Dec-07 08:24 UTC
Re: Deploying rails 3.1 application to amazon EC2 Instance with Capistrano from local git repository.
On 7 Dec 2011, at 05:34, Geo Manickam <geo_72-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> I am trying to deploy my rails application to EC2 Instance with > Capistrano from local git repository as a "root" user. I am following > this http://blog.bhushangahire.net/2010/02/17/setup-capistrano-to-deploy-rails-application-on-amazon-ec2-with-git/ > url. > > I am having trouble with this step below. > > 5: Copy your SSH public key to your EC2 node > $ scp -i ~/my-ec2-keypair ~/.ssh/id_rsa.pub root@ec2-xxx-xxx-xxx- > xxx.compute-1.amazonaws.com:/root/.ssh/authorized_keys2 > NOTE the filename authorized_keys2 – not authorized_keys!! > > How can I copy my public key to EC2? when i tried to run command i > also get "Please login as the ec2-user user rather than root user."If you''re using the amazon Linux AMIs (the default) then ssh access for root is turned off. I don''t know why those instructions tell you to do everything as root - there''s really no reason to. I just use the default ec2-user for stuff that doesn''t need special privileges Fred> > any help on this appreciated. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
newrails user
2011-Dec-08 02:29 UTC
Re: Deploying rails 3.1 application to amazon EC2 Instance with Capistrano from local git repository.
yes I agree. There wont be any "login by password" authentication for images that are provided by Amazon.Theres only key based authentication On Wed, Dec 7, 2011 at 1:54 PM, Frederick Cheung <frederick.cheung-Re5JQEeQqe8@public.gmane.orgm> wrote:--Siva> > > On 7 Dec 2011, at 05:34, Geo Manickam <geo_72-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > I am trying to deploy my rails application to EC2 Instance with > > Cano from local git repository as a "root" user. I am following > > this > http://blog.bhushangahire.net/2010/02/17/setup-capistrano-to-deploy-rails-application-on-amazon-ec2-with-git/ > > url. > > > > I am having trouble with this step below. > > > > 5: Copy your SSH public key to your EC2 node > > $ scp -i ~/my-ec2-keypair ~/.ssh/id_rsa.pub root@ec2-xxx-xxx-xxx- > > xxx.compute-1.amazonaws.com:/root/.ssh/authorized_keys2 > > NOTE the filename authorized_keys2 – not authorized_keys!! > > > > How can I copy my public key to EC2? when i tried to run command i > > also get "Please login as the ec2-user user rather than root user." > > > If you''re using the amazon Linux AMIs (the default) then ssh access for > root is turned off. I don''t know why those instructions tell you to do > everything as root - there''s really no reason to. I just use the default > ec2-user for stuff that doesn''t need special privileges > > Fred > > > > any help on this appreciated. > > > > -- > > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Geo Manickam
2011-Dec-12 00:16 UTC
Re: Deploying rails 3.1 application to amazon EC2 Instance with Capistrano from local git repository.
thanks you. it worked. the command I used scp -i amazon-ec2-ticket-ws-key-pair.pem test.pub ec2-user@ec2-c2-xxx- xxx-xxx-xxx.us-west-2.compute.amazonaws.com:/tmp On Dec 7, 12:24 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 7 Dec 2011, at 05:34,GeoManickam<geo...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > I am trying to deploy my rails application to EC2 Instance with > > Capistrano from local git repository as a "root" user. I am following > > thishttp://blog.bhushangahire.net/2010/02/17/setup-capistrano-to-deploy-r... > > url. > > > I am having trouble with this step below. > > > 5: Copy your SSH public key to your EC2 node > > $ scp -i ~/my-ec2-keypair ~/.ssh/id_rsa.pub root@ec2-xxx-xxx-xxx- > > xxx.compute-1.amazonaws.com:/root/.ssh/authorized_keys2 > > NOTE the filename authorized_keys2 – not authorized_keys!! > > > How can I copy my public key to EC2? when i tried to run command i > > also get "Please login as the ec2-user user rather than root user." > > If you''re using the amazon Linux AMIs (the default) then ssh access for root is turned off. I don''t know why those instructions tell you to do everything as root - there''s really no reason to. I just use the default ec2-user for stuff that doesn''t need special privileges > > Fred > > > > > > > > > > > any help on this appreciated. > > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.