在CentOS系统上进行远程连接,通常有以下几种方法:
yum install -y tigervnc-server*
。systemctl stop firewalld
和 setenforce 0
。vncserver :1
(:1
是桌面号,可以根据需要更改为:2
、:3
等)。vncpasswd
。/root/.vnc/xstartup
,以自定义启动应用程序。5901
,桌面号为:1
时)。sudo yum install openssh-server
。sudo systemctl start sshd
。sudo systemctl enable sshd
。sudo firewall-cmd --permanent --add-service=ssh
。sudo firewall-cmd --reload
。ssh username@ip_address
,其中username
是您在CentOS系统上的用户名,ip_address
是CentOS系统的IP地址。yum install epel-release
,yum install xrdp
。systemctl start xrdp
,systemctl enable xrdp
。firewall-cmd --zone=public --add-port=3389/tcp --permanent
,firewall-cmd --reload
。以上就是在CentOS系统上进行远程连接的基本步骤。根据您的具体需求和环境,可以选择最适合的远程连接方法。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:centos怎么配置远程连接