telnetdubuntu打开telnet服务具体步骤

telnetd  时间:2021-07-14  阅读:()

如何启动ubuntu下的telnet服务

步骤如下: 在终端输入命令:sudo apt-get install d d 安装成功后,系统会显示有相应得提示 运行: sudo vi /etc/d.conf 并加入以下一行 stream tcp nowait d /usr/sbin/tcpd /usr/sbin/d 输入sudo vi /etc/d.conf并加入内容: # Simple configuration file for d # # Some defaults, and include /etc/d.d/ defaults { # Please note that you need a log_type line to be able to use log_on_ess # and log_on_failure. The default is the following : # log_type = SYSLOG daemon info instances = 60 log_type = SYSLOG authpriv log_on_ess = HOST PID log_on_failure = HOST cps = 25 30 } includedir /etc/d.d sudo vi /etc/d.d/并加入以下内容: # default: on # description: The server serves sessions; it uses # unencrypted username/password pairs for authentication. service { disable = no flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/d log_on_failure += USERID } 重启机器或重启网络服务sudo /etc/init.d/d restart 使用TELNET客户端远程登录; ifconfig -a //// 显示本机地址。

怎么设置root用户使用telnet远程登录linux

1.启用root 默认ubuntu的超级管理员用户(root)是被禁止掉了的,我首先得启用它。

输入命令:sudo passwd,然后输入root密码。

2.安装服务 输入命令:sudo apt-get install d d 3.启用服务 修改 /etc/d.conf文件,只需取消下面一行注释掉即可。

# stream tcp nowait d /usr/sbin/tcpd /usr/sbin/d 4.允许root用户登录 有两种方法: (1)输入命令:mv /etc/securetty /etc/securetty.bak (2)修改/etc/pam.d/login这个文件。

只需将下面一行注释一下即可。

#auth required lib/security/pam_securetty.so

hosts deny 怎么解决

hosts.allow与hosts.deny设置方法如下:   这两个文件均在/etc/目录下,其中优先级为先检查hosts.deny,再检查hosts.allow,后者设定可越过前者限制,例如:   1.限制所有的ssh,   除非从218.64.87.0——127上来。

  hosts.deny:   in.sshd:ALL   hosts.allow:   in.sshd:218.64.87.0/255.255.255.128   2.封掉218.64.87.0——127的   hosts.deny   in.sshd:218.64.87.0/255.255.255.128   3.限制所有人的TCP连接,除非从218.64.87.0——127访问   hosts.deny   ALL:ALL   hosts.allow   ALL:218.64.87.0/255.255.255.128   4.限制218.64.87.0——127对所有服务的访问   hosts.deny   ALL:218.64.87.0/255.255.255.128   其中冒号前面是TCP daemon的服务进程名称,通常系统   进程在/etc/d.conf中指定,比如in.ftpd,d,in.sshd   其中IP地址范围的写法有若干中,主要的三种是:   1.网络地址——子网掩码方式:   218.64.87.0/255.255.255.0   2.网络地址方式(我自己这样叫,呵呵)   218.64.(即以218.64打头的IP地址)   3.缩略子网掩码方式,既数一数二进制子网掩码前面有多少个“1”比如:   218.64.87.0/255.255.255.0《====》218.64.87.0/24

怎么设置mss的telnet的密码?

openmss 的 d 不检查密码,需要密码登入的话,安装 ssh。

默认的 root 口令为空,用 tmpuserchgpw 修改 root 口令,否则不能使用 root 身份登入。

等 ssh 工作正常后,killall d。

如何启动linux的telnet服务

1。

如果安装了、-server的rpm包,就跳到2。

,否则安装这个包。

2。

修改服务配置文件 vi /etc/d.d/ service {disable = yes flags = REUSE socket_type = streamwait = nouser = root server = /usr/sbin/d log_on_failure += USERID}将disable=yes行前加#,或者改为disable=no 3。

重新启动d守护进程 由于服务也是由d守护的,所以安装完-server,要启动服务就必须重新启动d [root@localhost root]#service d restart 4。

关闭系统的防火墙 linux系统默认的防火墙是“high”。

(方法:[root@localhost root]# setup 选择:“firewall configuration” 选择:security level——“no firewall”) 5。

如果想允许root以登入linux主机?因为 不是很安全,自然预设的情況之下就是无法允许 root 以 登入 Linux 主机!想要开放 root 以 登入 Linux 主机的话,可以这样做: 在 auth required /lib/security/pam_securetty.so 这行前加 # ,即把这行注释掉就行

ubuntu打开telnet服务具体步骤

1. sudo apt-get install d d   2. 安装成功后,系统也会有相应提示,   sudo vi /etc/d.conf并加入以下一行    stream tcp nowait d /usr/sbin/tcpd /usr/sbin/d   3. sudo vi /etc/d.conf并加入以下内容:   # Simple configuration file for d   #   # Some defaults, and include /etc/d.d/   defaults   {   # Please note that you need a log_type line to be able to use   log_on_ess   # and log_on_failure. The default is the following :   # log_type = SYSLOG daemon info   instances = 60   log_type = SYSLOG authpriv   log_on_ess = HOST PID   log_on_failure = HOST   cps = 25 30   }   includedir /etc/d.d   4. sudo vi /etc/d.d/并加入以下内容:   # default: on   # description: The server serves sessions; it uses   # unencrypted username/password pairs for authentication.   service   {   disable = no   flags = REUSE   socket_type = stream   wait = no   user = root   server = /usr/sbin/d   log_on_failure += USERID   }   5. 重启机器或重启网络服务sudo /etc/init.d/d restart   6. 使用TELNET客户端远程登录即可进行非root用户访问。

  7.使用root登录: mv /etc/securetty /etc/securetty.bak 这样root可以登录   了。

也可这样:   修改/etc/pam.d/login这个文件。

只需将下面一行注释掉即可。

  #auth required lib/security/pam_securetty.so   8. 详细配制/etc/d.d/   service   {   disable =no   bind =192.168.1.2   only_from=192.168.1.0/24   #上面这两行说明仅提供内部网段!   Instance =UNLIMITED   Nice =0   Flags =REUSE   socket_type=stream   wait =no   user =root   #server =/usr/sbin/d   server =/usr/sbin/d   server_args =-a none   log_on_failure +=USERID   }   service   {   disable =no   bind =140.116.142.196   only_from=140.116.0.0/16   no_ess=140.116.32.{10,26}   #上面三行设置外部较为严格的限制   instance =10   umask =022   nice =10   flags =REUSE   socket_type=stream   wait =no   user =root   #server =/usr/sbin/d   server =/usr/sbin/d   log_on_failure +=USERID   }   9.加设防火墙iptables:   如果想要针对192.168.0.0/24这个网段及61.xxx.xxx.xxx这个IP进行开放,   可以增加下面几行规则:   /sbin/iptables -A INPUT -p tcp -i eth0 -s 192.168.0.0/24 --dport 23 -j   ACCEPT   /sbin/iptables -A INPUT -p tcp -i eth0 -s 61.xxx.xxx.xxx --dport 23 -j   ACCEPT   /sbin/iptables -A INPUT -p tcp -i eth0 --dport 23 -j DROP   10.加设防火墙/etc/hosts.allow(deny)机制:   上面开放了192.168.0.0/24这个网段,但是如果您只想让其中的   192.168.0.1~192.168.0.5进入,可以设置如下 :   vi /etc/hosts.allow   d:192.168.0.1,192.168.0.2,192.168.0.3,192.168.0.4,192.168.0.5:allow   *原文地址* /ic.php?t=85766&sid=0bc7ab9a2c7c0418b   site : /u1/39518/showart_415036.html   *UBUNTU开启TELNET服务*   1. sudo apt-get install d d   2. 安装成功后,系统也会有相应提示(好象710才有,610就没看到),   sudo vi /etc/d.conf并加入以下一行    stream tcp nowait d /usr/sbin/tcpd /usr/sbin/d   3. sudo vi /etc/d.conf并加入以下内容:   # Simple configuration file for d   #   # Some defaults, and include /etc/d.d/   defaults   {   # Please note that you need a log_type line to be able to use   log_on_ess   # and log_on_failure. The default is the following :   # log_type = SYSLOG daemon info   instances = 60   log_type = SYSLOG authpriv   log_on_ess = HOST PID   log_on_failure = HOST   cps = 25 30   }   includedir /etc/d.d   4. sudo vi /etc/d.d/并加入以下内容:   # default: on   # description: The server serves sessions; it uses   # unencrypted username/password pairs for authentication.   service   {   disable = no   flags = REUSE   socket_type = stream   wait = no   user = root   server = /usr/sbin/d   log_on_failure += USERID   }   5. 重启机器或重启网络服务sudo /etc/init.d/d restart   6. 使用TELNET客户端远程登录;ifconfig -a显示本机地址;

百纵科技(1399元/月)香港CN2站群232IP

湖南百纵科技有限公司是一家具有ISP ICP 电信增值许可证的正规公司,多年不断转型探索现已颇具规模,公司成立于2009年 通过多年经营积累目前已独具一格,公司主要经营有国内高防服务器,香港服务器,美国服务器,站群服务器,东南亚服务器租用,国内香港美国云服务器,以及全球专线业务!活动方案:主营:1、美国CN2云服务器,美国VPS,美国高防云主机,美国独立服务器,美国站群服务器,美国母机。2、香港C...

hypervmart:英国/荷兰vps,2核/3GB内存/25GB NVMe空间/不限流量/1Gbps端口/Hyper-V,$10.97/季

hypervmart怎么样?hypervmart是一家国外主机商,成立于2011年,提供虚拟主机、VPS等,vps基于Hyper-V 2012 R2,宣称不超售,支持linux和windows,有荷兰和英国2个数据中心,特色是1Gbps带宽、不限流量。现在配置提高,价格不变,性价比提高了很多。(数据中心不太清楚,按以前的记录,应该是欧洲),支持Paypal付款。点击进入:hypervmart官方网...

HostYun 新增可选洛杉矶/日本机房 全场9折月付19.8元起

关于HostYun主机商在之前也有几次分享,这个前身是我们可能熟悉的小众的HostShare商家,主要就是提供廉价主机,那时候官方还声称选择这个品牌的机器不要用于正式生产项目,如今这个品牌重新转变成Hostyun。目前提供的VPS主机包括KVM和XEN架构,数据中心可选日本、韩国、香港和美国的多个地区机房,电信双程CN2 GIA线路,香港和日本机房,均为国内直连线路,访问质量不错。今天和大家分享下...

telnetd为你推荐
strstrc++里strstr是啥意思???httpsessionhttpsession 和cookie实现的会话跟踪有什么区别rbf神经网络RBF神经网络和BP神经网络有什么区别settimerSetTimer()和OnTimer()函数的作用范围策略组组策略完全使用方法slideshare如何通过slideshare扩充LinkedIn人脉rownumbersql server 2005中row_number怎么用民生电商民生电商与传统的电商有什么区别?ruby语言ruby什么意思?什么含义?memsql如何自己实现一个关系型数据库
厦门虚拟主机 域名注册godaddy 七牛优惠码 ix主机 缓存服务器 外国空间 主机合租 hkg 可外链相册 重庆双线服务器托管 100mbps 新睿云 独享主机 什么是web服务器 全能空间 mteam wordpress空间 上海联通 中美互联网论坛 服务器机柜 更多