Merge pull request #7770 from lujun9972/translate-MjAxMTA5MTcgSGF2ZSBJIGJlZW4gaGFja2VkIGJ5IHJvb3Qtbm90dHktIC0gU3lzYWRtaW4gV29ybGQubWQK

translate done: 20110917 Have I been hacked by root-notty- - Sysadmin…
This commit is contained in:
DarkSun 2018-02-13 00:42:54 -06:00 committed by GitHub
commit de1ac77b3c
2 changed files with 22 additions and 23 deletions

View File

@ -1,23 +0,0 @@
translating by lujun9972
Have I been hacked by root@notty? Sysadmin World
======
If you see sshd:root@notty in the output of `ps aux` and wonder what kind of host notty is and if thats the name of a hackers computer, dont worry; notty actually just stands for no tty.
When you login locally to a linux machine the terminal will appear in the process list as tty (e.g. tty7). If you login to a remote server via ssh you will see something like root@pts/0.
However if a connection is made via sftp or you are copying files with scp then it will show as no tty (notty).
If you are still wondering on what is going on you might want to check the output of ps auxf to see a tree of processes or run `netstat -vatn` to examine all TCP connections.
--------------------------------------------------------------------------------
via: http://www.sysadminworld.com/2011/ps-aux-shows-sshd-rootnotty/
作者:[sysadminworld][a]
译者:[lujun9972](https://github.com/lujun9972)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:http://www.sysadminworld.com

View File

@ -0,0 +1,22 @@
我是被 root@notty 黑了吗?
======
当你在 `ps aux` 的输出中看到 `sshdroot@notty` 时会觉得很奇怪吧,`notty` 算是哪门子的主机,是不是黑客计算机的名字啊。不过不用担心; `notty` 仅仅是表示 `no tty` 而已。
当你在本地登陆 linux 机器时,登陆终端会在进程列表中显示为 `tty`( 比如。tty7)。若你通过 ssh 登陆一台远程服务器,则会看到类似 `root@pts/0` 这样的东西。
而若某个连接是由 sftp 或者是由 scp 拷贝文件而创建的,则该连接会会显示成 no tty (notty)。
如果你仍然想知道服务器上发生了什么事情,可以检查 `ps auxf` 的输出来查看进程树,或者运行 `netstat -vatn` 来检查所有的 TCP 连接。
--------------------------------------------------------------------------------
via: http://www.sysadminworld.com/2011/ps-aux-shows-sshd-rootnotty/
作者:[sysadminworld][a]
译者:[lujun9972](https://github.com/lujun9972)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:http://www.sysadminworld.com