我是通过pacman -S inetutils telnet安装的,我想尝试通过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
}发布于 2021-09-22 01:09:36
解决方案:
如果没有,请安装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
https://unix.stackexchange.com/questions/670045
复制相似问题