After you have enrolled for two-step login with Duo, you can use the Duo mobile app on your device to generate a passcode that can be used to log in.
Please note that this will work even if your device has no cellular or Wifi data connection or is in airplane mode.