Ssh – change to text console using ssh

consolelinuxssh

I'm connecting to target computer through SSH from command line. Target computer is running Gnome. I need to be able to tell the target computer to change its desktop to a fullscreen text console (like when you do ctrl-alt-f2). Running Gnome terminal fullscreen is not an option. Is this possible?

Best Answer

chvt N with N the number of the terminal (2 in your example). On Debian it's in the kbd package, I guess it should be the same on Ubuntu.