クライアント側 win98 + TTSSH + FFFTP IP:192.168.0.2 SSH Port Forwarding local 8021 to remote machine "192.168.0.3" port 21
>FFFTP以外のftpクライアントで試すとどうなる?
NextFTP(試用期間です。制限は無いと思うです)で、以下のようなログです。
----ここから NextFTP Ver2.10 2002(C)Toxsoft
ホストを探しています - localhost ホストに接続しています - localhost (127.0.0.1) 220-=(<*>)=-.:. (( Welcome to PureFTPd 1.0.7 )) .:.-=(<*>)=- 220-You are user number 1 of 3 allowed 220-Local time is now 23:27 and the load is 0.00. Server port: 21. 220-This is a private system - No anonymous login 220 You will be disconnected after 5 minutes of inactivity. >USER hogehoge 331 User hogehoge OK. Password required >PASS ******** 230-User hogehoge has group access to: ftpgroup operator wheel hogehoge 230 OK. Current restricted directory is / >XPWD 257 "/" is your current location ファイルリストを取得しています... >TYPE A 200 TYPE is now ASCII >PASV 227 Entering Passive Mode (192,168,0,3,174,47). >LIST 421 Timeout < ホストから切断されました。 > < エラー : コマンドを送信できませんでした。 (1057-0) > < エラー : コマンドを送信できませんでした。 (1052-0) > < エラー : 転送はキャンセルされました。 (1055-10038) > < ファイルの一覧を取得できませんでした。 > < ホストに接続できませんでした。 > ----ここまで
あと、参考になるわかりませんが LIST で停止する時 FreeBSD で netstat すると、
Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 hogehoge3.43504 hogehoge2.1248 FIN_WAIT_2 tcp4 0 0 hogehoge3.43504 *.* LISTEN tcp4 0 0 hogehoge3.ftp hogehoge3.1061 ESTABLISHED tcp4 0 0 hogehoge3.1061 hogehoge3.ftp ESTABLISHED tcp4 0 20 hogehoge3.ssh hogehoge4.1230 ESTABLISHED
Feb 2 12:34:56 onakaippai sshd[24248]: [ID 800047 auth.info] scanned from 123.123.123.123 with SSH-1.0-SSH_Version_Mapper. Don't panic. Feb 2 12:34:56 onakaippai sshd[24244]: [ID 800047 auth.info] Did not receive identification string from 123.123.123.123.
プロバの鯖がtelnetでしか入れないので、ユーザ権限でsshdを動かしたいです。 環境はsolaris。バイナリのssh、sshd、ssh-keygenがあります。 SSH Version 1.2.27 [sparc-sun-solaris2.5.1], protocol version 1.5. ちと古くてアレなんですが、コンパイルする環境がないので、これより新しいのは用意できません。
#これは余談ですが、x86のLinux/FreeSolaris上でクロスコンパイルとかできます?
現状:パスワード認証不可、RSA認証も不可です。
$ ssh -v -p 22222 nanashi@solaris.puge.ne.jp SSH Version OpenSSH-1.2.3, protocol version 1.5. Compiled with SSL. debug: Reading configuration data /home/nanashi/.ssh/config debug: Reading configuration data /etc/ssh/ssh_config debug: Applying options for * debug: ssh_connect: getuid 1000 geteuid 1000 anon 1 debug: Connecting to solaris.puge.ne.jp [2xx.xxx.xxx.xxx] port 22222. debug: Connection established. debug: Remote protocol version 1.5, remote software version 1.2.27 debug: Waiting for server public key. debug: Received server public key (768 bits) and host key (1024 bits). debug: Host 'solaris.puge.ne.jp' is known and matches the host key. debug: Encryption type: 3des debug: Sent encrypted session key. debug: Installing crc compensation attack detector. debug: Received encrypted confirmation. debug: Trying RSA authentication with key 'nanashi@hoge.com' debug: Server refused our key. debug: Doing password authentication. nanashi@solaris.puge.ne.jp's password: Permission denied, please try again. nanashi@solaris.puge.ne.jp's password:
>>437 $ ./sshd -d -f sshd_config debug: sshd version 1.2.27 [sparc-sun-solaris2.5.1] debug: Initializing random number generator; seed file /etc/ssh_random_seed log: Server listening on port 22222. log: Generating 768 bit RSA key. Generating p: ..++ (distance 52) Generating q: ...++ (distance 16) Computing the keys... Testing the keys... Key generation complete. log: RSA key generation complete. debug: Server will not fork when running in debugging mode. log: Connection from 2xx.xxx.xxx.xxx port 4854 log: Could not reverse map address 2xx.xxx.xxx.xxx. debug: Client protocol version 1.5; client software version OpenSSH-1.2.3 debug: Sent 768 bit public key and 1024 bit host key. debug: Encryption type: 3des debug: Received session key; encryption turned on. debug: Installing crc compensation attack detector. debug: Can't find nanashi's shadow - access denied.