您的位置:首页 > 运维架构 > Linux

linux下安装telnet,ssh

2011-11-22 14:52 232 查看
linux下的telnet服务,而后就可以在dos下就可以使用普通用户访问服务器。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

[root@localhost ~]# rpm -qa | grep telnet-server

[root@localhost ~]# yum -y install telnet-server

[root@localhost ~]# chkconfig telnet on
[root@localhost ~]# /etc/init.d/xinetd restart
停止 xinetd: [确定]
启动 xinetd: [确定]
[root@localhost ~]# # netstat -ntlp | grep 23
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 19502/xinetd
[root@localhost ~]# useradd dream
[root@localhost ~]# passwd dream
而后su切换到root就可以使用管理员了。

###################################################################
linux下的 SSH
[root@localhost ~]# yum -y install openssh-server

[root@localhost ~]# service sshd restart
停止 sshd: [确定]
启动 sshd: [确定]
[root@localhost ~]# netstat -ntlp | grep sshd
tcp 0 0 :::22 :::* LISTEN 19648/sshd
[root@localhost ~]#

本文出自 “宁静致远” 博客,请务必保留此出处http://lichaomin.blog.51cto.com/3566013/721836
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: