When I connect to a CADE lab machine on VS Code while on campus WiFi, I get a ‘verification code’ prompt?

Most likely, your machine isn’t recognizing the username of your CADE account and instead is grabbing the username of your local machine (e.g. C:\Users\Bob on Windows, /Users/Bob on macOS, /home/bob on Linux/BSD instead of a lab machine /home/u8675309).
To test this, SSH into a lab machine that you have never connected to before. In VS Code, click on the button that has a greater than and less than symbol next to each other (it should show ‘Open a remote window’ above the button when highlighted) on the bottom left and this should open a menu on the top. Click on Connect to host, then type in ‘yourcadeusername@labX-X.eng.utah.edu’ (e.g. u8675309@lab2-1.eng.utah.edu).
It will then warn you that “lab2-1.eng.utah.edu has fingerprint SHA256:fingerprintkey”. Click or type ‘Continue’. It should ask for your CADE password and as long as you’re on campus wifi it shouldn’t ask for a verification code. It may take a minute to connect as VS Code has to download the VS Code server.

Posted in: SSH Related