首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Raspberry PI ArchLinux telnet服务器4次登录错误

Raspberry PI ArchLinux telnet服务器4次登录错误
EN

Unix & Linux用户
提问于 2021-09-21 23:13:53
回答 1查看 324关注 0票数 1

我是通过pacman -S inetutils telnet安装的,我想尝试通过telnet登录,但是如果我使用telnet localhost连接

这件事来了

代码语言:javascript
复制
[root@alarmpi ~]# systemctl restart telnet.socket
[root@alarmpi ~]# telnet localhost
Trying ::1...
Connected to localhost.
Escape character is '^]'.

Linux 5.10.38-2-ARCH (alarmpi) (pts/1)

Login incorrect

Login incorrect

Login incorrect

Login incorrect


Login incorrect

Connection closed by foreign host.

我已经搜索了很多,找到了https://www.toolbox.com/tech/operating-systems/question/problems-using-telnet-to-access-a-solaris-8-server-032008/,但没有任何解决方案。

我的/etc/xinetd/telnet

代码语言:javascript
复制
service telnet
{
        flags                   = REUSE
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/bin/telnetd
        log_on_failure          += USERID
        disable                 = no
}
EN

回答 1

Unix & Linux用户

发布于 2021-09-22 01:09:36

解决方案:

如果没有,请安装pacman -S xinetd并在nano /etc/xinetd/telnet中更改

代码语言:javascript
复制
service telnet
{
        flags                   = REUSE
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/bin/telnetd
        server_args             = --exec-login=/usr/bin/login
        log_on_failure          += USERID
        disable                 = no
}

然后做systemctl stop telnet.socketsystemctl start xinetd

http://polarhome.com/service/man/?qf=telnetd&tf=2&of=Archlinux&sf=8

-exec-login=STRING:设置要执行的程序,而不是/usr/bin/login

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/670045

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档