学内ネットワークからftp接続する方法

学内から直接ftpで接続できないので, proxyを通して接続する.

~% ftp proxy.sras.sic.shibaura-it.ac.jp
Trying 202.18.118.128…
Connected to proxy.sic.shibaura-it.ac.jp.220- ocache01 PROXY-FTP server (DeleGate/9.9.7) ready.
220- @ @
220- ( – ) { DeleGate/9.9.7 (March 31, 2010) }
220- AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165, H18PRO-443
220- Copyright (c) 1994-2000 Yutaka Sato and ETL,AIST,MITI
220- Copyright (c) 2001-2010 National Institute of Advanced Industrial Science a
nd Technology (AIST)
220- WWW: http://www.delegate.org/delegate/
220- –
220- You can connect to a SERVER by user' command:
220- ftp> user username@SERVER
220- or by
cd’ command (after logged in as an anonymous user):
220- ftp> cd //SERVER
220- Cache is enabled by default and can be disabled by cd .' (toggle)
220- This (proxy) service is maintained by 'goiken@sic.shibaura-it.ac.jp'
220-
220-extended FTP [MODE XDC][XDC/BASE64]
220
Name (proxy.sras.sic.shibaura-it.ac.jp:l08100): ftp@ftp.freebsd.org
331 Password required for ftp.
Password:
230-- PASS for ftp@ftp.freebsd.org.
220 ftp.beastie.tdk.net FTP server (Version 6.00LS) ready.
331 Guest login ok, send your email address as password.
230- Guest login ok, access restrictions apply.
230-- @ @
230 \( - )/ -- { connected to
ftp.freebsd.org’ }
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
229 Entering Extended Passive Mode (|||34337|)
150 Opening ASCII mode data connection for ‘/bin/ls’.
total 10
drwxrwxr-x 2 0 5 512 Jul 19 2007 .snap
drwx—— 2 0 0 2048 Jul 19 2007 lost+found
drwxr-xr-x 3 1006 1006 512 Sep 21 2009 pub
drwxr-xr-x 3 1006 1006 512 Jun 5 2007 sup
drwxr-xr-x 4 1006 0 512 Sep 18 2009 www
226 Transfer complete.
ftp>

<ユーザ名>@<接続先IP>で接続する. anonymous接続する場合はユーザ名にftpを指定するらしい.

参考URLにはGUIソフトでの設定もあるので,GUIソフトで繋ぎたい場合は要参照.

参考:

ftp プロキシサーバ