The 49ers have signed LB Dan Skuta to a two-year contract.