% telnet ftp.iij.ad.jp ftp Trying 2001:240::250:8bff:fe0e:cedb... telnet: connect to address 2001:240::250:8bff:fe0e:cedb: No route to host Trying 202.232.2.51... Connected to ftp.iij.ad.jp. Escape character is '^]'. 220 ftp0.iij.ad.jp FTP server ready. USER anonymous 331 Guest login ok, type your name as password. PASS pass 230 Guest login ok, access restrictions apply. LIST 425 Can't build data connection: Connection refused. QUIT 221- Data traffic for this session was 0 bytes in 0 files. Total traffic for this session was 293 bytes in 0 transfers. 221 Thank you for using the FTP service on ftp0.iij.ad.jp. Connection closed by foreign host.
38 :
>>37 >LIST >425 Can't build data connection: Connection refused.
PASV か PORT かしろよ。
39 :
PASVしても、どうやって受け取ったらいいのか分からないという(涙)
40 :
% telnet ftp.iij.ad.jp ftp Trying 2001:240::250:8bff:fe0e:cedb... Trying 202.232.2.51... Connected to ftp.iij.ad.jp. Escape character is '^]'. 220 ftp0.iij.ad.jp FTP server ready. user anonymous 331 Guest login ok, type your name as password. pass hogehoge 230 Guest login ok, access restrictions apply. pasv 227 Entering Passive Mode (202,232,2,51,215,164) list ^] telnet> z 中断 % telnet 202.232.2.51 55204 Trying 202.232.2.51... Connected to ftp0.iij.ad.jp. Escape character is '^]'. total 1 drwxr-xr-x 2 0 wheel 512 Jun 26 2001 etc lrwxr-xr-x 1 0 wheel 12 Nov 20 2001 ls-lR.gz -> pub/ls-lR.gz drwxr-xr-x 39 0 wheel 1024 Jun 12 15:52 pub lrwxr-xr-x 1 0 wheel 26 Nov 20 2001 updatefile.thisweek.gz -> pub/updatefile.thisweek.gz lrwxr-xr-x 1 0 wheel 23 Nov 20 2001 updatefile.today.gz -> pub/updatefile.today.gz Connection closed by foreign host. % fg telnet ftp.iij.ad.jp ftp 150 Opening ASCII mode data connection for '/bin/ls'. 226 Transfer complete. quit 221- Data traffic for this session was 0 bytes in 0 files. Total traffic for this session was 1418 bytes in 1 transfer. 221 Thank you for using the FTP service on ftp0.iij.ad.jp. Connection closed by foreign host.
>>49 Though logging with telnet is obsolete, how can you talk some protocols like HTTP SMTP POP3 etc by hand with ssh ? Therefore telnet command is still needed. Talking to telnetd with netcat is another technical interest.