The ELC Community Blog
A knowledge exchange on Ruby on Rails and Agile Development
SSH Configuring RightScale's RightImage FC6V2
by jsiegel on June 15, 2007
We are a RightScale Sponsor and advocate. That said, we've been using RightScale for almost a year for our own needs and regularly run dozens of ad-hoc instances on their platform. I saw their April release of RightImages, but just had my first chance to try one out.
Using a RightImage was a breeze. When launching a new instance, I selected RightImage FC6V2 (a built-from scratch FC6 image with detailed build instructions on RightScale's blog):
For my usage, I needed to use the instance to issue a standard login account and my own superuser login. Once the instance came online, I used these steps:
- 1. I used the web-based SSH login console to access the machine.
- 2. I added my user and the other user's login:
adduser jsiegel adduser anotheruser
- 3. I set passwords for both:
passwd jsiegel passwd anotheruser
- 4. I added my own account to the wheel group:
vi /etc/group
My edits resulted in:wheel:x:10:root,jsiegel
- 5. I added the wheel group to allow sudo usage:
visudo
My edits resulted in:## Same thing without a password %wheel ALL=(ALL) NOPASSWD: ALL
- 6. I modified sshd's configuration to allow logins with password (the RightImage by default disabled this):
vi /etc/ssh/sshd_config
My edits resulted in:# To disable tunneled clear text passwords, change to no here! #PasswordAuthentication no #PermitEmptyPasswords no #PasswordAuthentication no
- 7. I found sshd's process id and sent it a reset request (HUP signal):
pgrep sshd
This listed two ids say 2001, 2003. I then ran:kill -HUP 2001 2003
sudo /sbin/service httpd restart
Timeline
- Congratulations to Buy.com, Shoperion and us!
- Migrate Test DB Rake Plugin
- FunnyOrDie.com in Time's 50 Best Websites of 2007
- TuneCore and Public Enemy in New York Times
- Conditional Action Caching with Cache_Fu
- SSH Configuring RightScale's RightImage FC6V2
- Preloading fixtures
- Using and testing multiple databases in rails part 2
- RailsConf Europe
- Why associated models don't save
- RailsConf 2007 Highlights

Comments