More than 5 years have passed since last update.
ubuntuでtelnetサーバを立てる必要があったため、
何も考えずに以下のようにインストールしました。
apt-get install inetutils-inetd
apt-get install telnetd
で、telnetクライアントで接続してみるとConnection refusedと出て、うまくいかない。
netstat を見てみると、
tcp6 0 0 :::23 :::* LISTEN
なんとtelnetの23番ポートはIPv6で待ち受けている!
そこで公式マニュアルに従ってinetdの設定を変えて、telnetをIPv4で上げるようにする。
具体的には/etc/inetd.confのtcpの部分をtcp4にすればOK
telnet stream tcp4 nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd
なんでデフォルトでIPv6なんだろう。。。
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
