如何远程连接linux服务器?作为一款服务器级别的操作系统,linux充分考虑了远程登录的问题,无论是从linux、windows还是其他一些操作系统登录到linux都是非常方便的,下面为大家分享一下远程连接Linux服务器具体方法。

一、检查是否安装了ftp服务
rpm -qa|grep vsftpd
二、安装ftp服务
yum -y install vsftpd
三、开启ftp服务,并添加到开机启动项
systemctl start vsftpd.service (也可以用service vsftpd start 旧版本命令,systemctl新版本命令【注意防火墙添加端口,centOS7和6版本添加方式不一样】)
chkconfig vsftpd on
四、检查ftp服务
systemctl status vsftpd.service 或者 service vsftpd status 【极端情况下,可能需要手动开启防火墙ftp端口】
五、测试ftp服务
ftp localhost
六、配置ftp服务,允许root等用户远程连接
1、编辑 /etc/vsftpd/vsftpd.conf 文件
加入:
pam_service_name=vsftpd
userlist_enable=YES 【是否启用user_list文件】
tcp_wrappers=YES 【控制主机访问,默认YES】
2、编辑/etc/vsftp/user_list
注释掉 root,允许root上传下载文件
补充:另一种常见的远程连接linux方式telnet,需要在window端,linux端安装telnet服务。
ftp乱码解决:
ftp连接工具连接属性里,勾上use UTF-8 encoding
secureCRT乱码解决:
secureCRT配置文件下session子目录下,找到相对应的连接文件(后缀.ini),修改Filenames Always Use UTF=00000001
以上就是良许教程网为各位朋友分享的Linux系统相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多干货等着你 !
