1

As far as I've understood, a terminal emulator is a GUI-based program which gives me a terminal-like viewport and allows me to interact with it just like I'd do with a terminal, except that it has all the support from the X system, so I suspect that ssh user@ip will not give me access to a terminal emulator running on the remote machine. If I want to use that, I need to connect to that machine via VNC, and then open a terminal emulator window in that desktop.

But do I get access to a virtual console (one that, physially on the remote machine I'd get via Ctrl+Alt+F2, for instance)? I can ssh -X ..., which gives me access to the clipboard, which comes with X, so it kind of feels I'm not in a virtual console either...


As regards the proposed duplicate, since my question is specifically about SSH, the information I can gather is the following:

so the answer to my question seems to be "it gives access to a pseudo terminal".

Enlico
  • 1,555

1 Answers1

2

https://unix.stackexchange.com/a/4132/153329

pseudo-ttys, are provided (through a thin kernel layer) by programs called terminal emulators, such as Xterm (running in the X Window System), Screen (which provides a layer of isolation between a program and another terminal), Ssh(which connects a terminal on one machine with programs on another machine)

With ssh user@ip you get shell running in pseudo-terminal (not X11 terminal emulator).

With ssh -X you get X11 forwarding - an SSH protocol that enables users to run graphical applications on a remote server and interact with them using their local display and I/O devices.

X11 uses a client-server model, where an X Server is a program on a machine which manages access to graphical displays and input devices (monitors, mice, keyboards, etc.), and an X Client is a program which handles graphical data.

X Servers and X Clients can communicate over remote network.

gapsf
  • 606