Intel 实习mentor布置问题1
可視化界面下的Terminal和ssh下啟動的Terminal二者之間的區別。
二者都是偽終端,與物理終端相互區別。物理終端是本地直接關聯了物理設備,偽終端則是通過軟件方法來實現。二者都是完成于主機間的IO。
可以通過tty命令來查看當前終端機連接標準輸入設備的文件名稱。
具體區別在于
偽終端的兩種情況:
第一是在Xwindows(桌面GUI環境之下)模式下的啟動的終端稱之為偽終端;
第二是在遠程如果用telnet遠程登錄的話,也是創建的一個偽終端
Linux設計出一對虛擬終端設備,即/dev/ptmx和/dev/pts/X。這就跟TUN/TAP網卡的網卡與字符設備之前的對應關系一致。
簡單來講,當有ssh客戶端連接后,sshd會fork一個進程,然后在子進程中打開一個叫做/dev/pts/1(或者2,3,4,5…)的設備,然后和sshd進程的/dev/ptmx配對,這樣在ptmx與pts之間就構成了一條管道,數據可以順利被導入到sshd,然后通過TCP/IP封裝發往ssh client所在的機器。
————————————————
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
總結
以上是生活随笔為你收集整理的Intel 实习mentor布置问题1的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: opencv 二值化图像详解 一文看懂各
- 下一篇: mysql查询数据库修改记录_11. 查