简体   繁体   English

远程Linux TTY

[英]Linux TTY remotely

I am maintaining a Virtual Machine on a Cloud Service with Linux (SLES) operating system. 我正在使用Linux(SLES)操作系统在云服务上维护虚拟机。 At some point, someone logged in, did some major things (eg chmod 777 on ALL files, etc) and, with some other things that he did, messed up the system. 在某个时候,某人登录后做了一些重要的事情(例如,在所有文件上使用chmod 777等),并且他做了其他一些事情,却使系统混乱。

It would be no surprise if he actually hacked it, but... The vm is hosted inside a VPN (unreachable from outside the VPN), and last root command specifies a user connected through tty1 (!!!), with no IP address, while all my connections, root and user are pts/X . 如果他实际上被黑客入侵也就不足为奇了,但是... vm托管在VPN内(在VPN外部无法访问),并且last root命令指定通过tty1 (!!!)连接的用户,没有IP地址,而我所有的连接,root和user都是pts/X

My thoughts (not like I am an expert) are concluding on one thing, this user must have physical (?) access to cloud service, since tty is reachable locally. 我的想法(不像我是专家)是一件事的结论,该用户必须具有物理(?)访问云服务的权限,因为tty在本地是可访问的。 Which means, that if that is true, the "attacker" must be someone from inside the Cloud-Service hosting company. 这意味着,如果这是真的,“攻击者”必须是Cloud-Service托管公司内部的人员。

Question: Is there ANY way you can connect remotely to a server/cloud service virtual machine using ttyX? 问题:有什么方法可以使用ttyX远程连接到服务器/云服务虚拟机?

Correct me at any point you see wrong; 纠正我在您发现错误的任何时候; as I mentioned I am not an expert but I am more than willing to learn. 正如我提到的,我不是专家,但我乐于学习。

Depending on the hypevisor, it provides a remote console, so, it is kind of local console connected from a remote place. 根据hypervisor,它提供了一个远程控制台,因此,它是一种从远程位置连接的本地控制台。 Also, there is a ipmi protocol that can connected to the hypervisor and use the sol (serial-over-lan) command. 另外,还有一个ipmi协议,可以连接到管理程序并使用sol(串行局域网)命令。

Other than that, the user might be connecting using a VNC, that would also be shown as a tty connection 除此之外,用户可能正在使用VNC进行连接,这也将显示为tty连接

IPMI SOL: http://www.alleft.com/sysadmin/ipmi-sol-inexpensive-remote-console/ IPMI SOL: http : //www.alleft.com/sysadmin/ipmi-sol-inexpensive-remote-console/

Remote qemu guest console: How to switch to qemu monitor console when running with "-curses" 远程qemu客户控制台: 使用“ -curses”运行时如何切换到qemu监视器控制台

VNC on guests: https://askubuntu.com/questions/262700/qemu-kvm-vnc-support 访客上的VNC: https : //askubuntu.com/questions/262700/qemu-kvm-vnc-support

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM