Over the weekend I was setting up a few FreeBSD jails to do some regression testing for the Bacula project. I had two already configured and running from my earlier work. My goal was to create a couple more and test multiple versions of databases etc. I found I could create a jail, but not login. When I checked in via the console, I saw that the initial startup script which did the jail setup was not running. I fixed it with a simple mv command. The rest of this article outlines the symptoms and how I fixed it.
The symptoms
I started the jail:
# ezjail-admin start mysql51.example.org
Configuring jails:.
Starting jails: mysql51.example.org.
Then I tried to login into them:
$ ssh -A mysql51.example.org
Password:
Password:
Password:
Received disconnect from 10.55.0.102: 2: Too many authentication failures for dan
This stumped me. I knew the password.
The investigation
Why didn't it let me in? Let me try the console:
# ezjail-admin console mysql51.example.org
Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 8.0-STABLE (PHENOM) #1: Fri Dec 18 02:04:40 EST 2009
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
