2017-12-04 20 views
0

rsh 및 rlogin을 비활성화하고 싶습니다. 나는 513 iptables에 154 포트를 사용하지,하지만 난 여전히 Debian7.8 32 비트 작업을 다른 host.I'm에 RSH로 로그인 할 수debian에서 rsh 및 rlogin 서비스를 비활성화하는 방법 7.8

내 /etc/inetd.conf 파일은 여기

# /etc/inetd.conf: see inetd(8) for further informations. 
# 
# Internet superserver configuration database 
# 
# 
# Lines starting with "#:LABEL:" or "#<off>#" should not 
# be changed unless you know what you are doing! 
# 
# If you want to disable an entry so it isn't touched during 
# package updates just comment it out with a single '#' character. 
# 
# Packages should modify this file by using update-inetd(8) 
# 
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args> 
# 
#:INTERNAL: Internal services 
#discard  stream tcp nowait root internal 
#discard  dgram udp wait root internal 
#daytime  stream tcp nowait root internal 
#time  stream tcp nowait root internal 

#:STANDARD: These are standard services. 

#:BSD: Shell, login, exec and talk are BSD protocols. 

#:MAIL: Mail, news and uucp services. 

#:INFO: Info services 

#:BOOT: TFTP service is provided primarily for booting. Most sites 
#  run this only on machines acting as "boot servers." 

#:RPC: RPC based services 

#:HAM-RADIO: amateur-radio services 

#:OTHER: Other services 
#<off># netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd 
swat  stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat 
#<off># sane-port stream tcp nowait saned:saned /usr/sbin/saned saned 
+0

나는이 질문이 더 https://serverfault.com/을 적합 생각을 다시 시작하도록 명령 service xinetd restart를 사용하는 구성 파일의 disable 필드를 수정합니다. – Felix

답변

0

입니다 /etc/xinetd.d/rlogin/etc/xinetd.d/rsh 는 그 다음 xinetd 서비스

+0

내 컴퓨터에 해당 파일이 없습니다. [serverFault] (https://serverfault.com/questions/886579/disable- rsh-login-on-sshd-se rver? noredirect)에 대한 답변을 얻었습니다. = 1 # co mment1143459_886579). 짧은 rsh/rlogin은 ssh에 대한 링크입니다. – maidamai