Restoring terminal trust