Codespaces SSH without VScode

Is it possible to ssh to a running codespace without opening VScode and port forwarding 2222. My use case for using codespace is to write code in nvim and run it in the shell.