SSH Hanging on Freebsd Jail
February 13th, 2007A common problem I have ran into while using freebsd 5 and 6 with jails is that ssh will hang on login. This happens just after authentication and it is because there is no /dev filesystem mounted. What happens is that in freebsd 4 you can use makedev. However, in freebsd 5 and 6 this does not work. You have to mount_devs:
#mount_devfs devfs /usr/jails/code-dev/dev
When you do this, ssh should work properly.
–
I am using Jails within freebsd on my server to create services for development, backup, and versioning. The importance of it being on a jail is in decending order. Development is great to have in its own world. However, backup and versioning are good because they can later be moved to their own machine or onto some more complex setup at a later time without much effort.