Intel 实习mentor布置问题1
可視化界面下的Terminal和ssh下啟動(dòng)的Terminal二者之間的區(qū)別。
二者都是偽終端,與物理終端相互區(qū)別。物理終端是本地直接關(guān)聯(lián)了物理設(shè)備,偽終端則是通過軟件方法來實(shí)現(xiàn)。二者都是完成于主機(jī)間的IO。
可以通過tty命令來查看當(dāng)前終端機(jī)連接標(biāo)準(zhǔn)輸入設(shè)備的文件名稱。
具體區(qū)別在于
偽終端的兩種情況:
第一是在Xwindows(桌面GUI環(huán)境之下)模式下的啟動(dòng)的終端稱之為偽終端;
第二是在遠(yuǎn)程如果用telnet遠(yuǎn)程登錄的話,也是創(chuàng)建的一個(gè)偽終端
Linux設(shè)計(jì)出一對(duì)虛擬終端設(shè)備,即/dev/ptmx和/dev/pts/X。這就跟TUN/TAP網(wǎng)卡的網(wǎng)卡與字符設(shè)備之前的對(duì)應(yīng)關(guān)系一致。
簡(jiǎn)單來講,當(dāng)有ssh客戶端連接后,sshd會(huì)fork一個(gè)進(jìn)程,然后在子進(jìn)程中打開一個(gè)叫做/dev/pts/1(或者2,3,4,5…)的設(shè)備,然后和sshd進(jìn)程的/dev/ptmx配對(duì),這樣在ptmx與pts之間就構(gòu)成了一條管道,數(shù)據(jù)可以順利被導(dǎo)入到sshd,然后通過TCP/IP封裝發(fā)往ssh client所在的機(jī)器。
————————————————
Telnet provides the ability to communicate with a service, nothing more nothing less. If that service happens to be a shell on a server, great, but it’s not always. I often use telnet to send a malformed HTTP request manually, or to manually run commands against an SMTP server.
SSH is way more than just a way of logging on to a server remotely. It can be used as a proxy to access remote services from your local computer, and it can be used as a protocol to run other protocols over (like scp)
A Shell is the name given to a command-line interpreter that runs on a computer to figure out what you’re wanting to do and tries to do it. This could be sh, bash, csh, tcsch or even command.com
Command Line is the DOS shell, usually associated with Microsoft operating systems.
A terminal is ambiguous. It could be the OS X name for the shortcut to their shell. It could also be a physical thing that was used to interface with the shell of a multi-user Unix server (a popular one is the VT-100)
What is the Linux version commonly called, is it just called SSH ?
SSH is just a protocol that can access the shell of the server. It is extremely common, but there’s also the older and insecure rsh or you can even log in to your Linux server with telnet if you’re so inclined.
https://blog.csdn.net/qq_27825451/article/details/101307195/
https://serverfault.com/questions/429677/confusion-over-terminology-ssh-shell-terminal-command-prompt-and-telnet
總結(jié)
以上是生活随笔為你收集整理的Intel 实习mentor布置问题1的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: opencv 二值化图像详解 一文看懂各
- 下一篇: 空间相关分析(三) 局部莫兰指数的理解