Forums

SSH to Console

Is there a way to enter consoles via SSH (and keep them alive between disconnects?)

No- this is because we have multiple console servers that actually run on different machines (so you may not be ssh-ing into the same machine that your browser console code was running on).

What about ssh-ing to the correct machine once logged in? I.e. Magic? ;-)

  1. SSH to ssh.pythonanywhere.com
  2. Login
  3. pa-attach 85364 (ssh to the right machine)
  4. Enjoy

something like running a tmux session on a machine, and then ssh-ing to that machine's IP and attaching to that tmux session would work :D

Indeed. And you can apply the same idea to your new beta docker consoles... However, doing that manually though is just not very user friendly.

Some random thoughts:

  • Joyent has Manta which basically gives you a jailed (Solaris Zones ~ Docker) shell on the server that stores your bucket of files. Since each PA account is more or less one "bucket of files" that paradigm could work too. AFAIK Joyent uses ZFS and its send/receive to move accounts around.

  • One could make all consoles ssh sessions and connect ssh sessions to docker containers. All thats needed then is some ssh management, e.g. https://github.com/gravitational/teleport, and a way to load-balance.