3 ms·
Don't all programs you use over SSH take advantage of the fact that you can pretend that STDIN is a file even when it's a socket?
by cldr 13y ago
Don't all programs you use over SSH take advantage of the fact that you can pretend that STDIN is a file even when it's a socket?
- ketralnis 13y agoI don't think so. ssh allocates a ptty and programs write to that, which ssh then proxies back to you. There's a middle-man. These programs couldn't write directly to the port 22 TCP socket you use to connect, or their content wouldn't be encrypted or have the other various SSH beenfits.