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

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

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

这出现了

[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

service telnet
{
        flags                   = REUSE
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/bin/telnetd
        log_on_failure          += USERID
        disable                 = no
}

答案1

解决方案:

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

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.socket并且systemctl start xinetd

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

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

相关内容