リモートコンピュータからSSH経由で接続できないが、ローカルでは接続できる

リモートコンピュータからSSH経由で接続できないが、ローカルでは接続できる

私は、openssh を実行している Arch Linux コンピューターを持っており、問題なくローカルに接続できます。しかし、別のネットワークから接続しようとするとエラーが発生します。SSH はポート 22 をリッスンしていますが、ポート 22 で SSH するように設定されているマシンが複数あるため、ルーターを設定してポート 25 を 22 にポート転送しています。

puttyを使用して、I get Incoming packet was garbled on decryptionblowfishを一番上に移動しようとしました。また、接続>SSH>暗号で3DESを一番上に移動しようとしました。そして、puttyバージョン.64を使用しています

MobaXtermを使用すると

Bad packet length 1349676916. Disconnecting: Packet corrupt そして手動で実行すると

ssh username@ip -vp 25

OpenSSH_6.7p1, OpenSSL 1.0.1g 7 Apr 2014
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to MY-IP [MY-IP] port 25.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0p1 Debian-4+deb7u2
debug1: match: OpenSSH_6.0p1 Debian-4+deb7u2 pat OpenSSH* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
Bad packet length 1349676916.
Disconnecting: Packet corrupt

sshを実行するときに-1を使用すると、

Protocol major versions differ: 1 vs. 2

私の理解する限り、ポートは適切に転送されています。また、telnetで接続して

Trying MY-IP...
Connected to MY-IP.
Escape character is '^]'.
SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2

ネットワーク上の他のマシンに接続し、それらを使用してこのマシンに ssh することができます。他の 2 台のマシンは Raspberry Pi で、アクセス ポイントとして使用しようとすると遅延が発生する可能性があるので、可能であればこれを修正したいと思います。

答え1

ポート 35 で動作しているようです。ポート 25 が通常別の用途に使用されているとは知りませんでした。別のポートに切り替えて、静的 IP として設定すると、問題は解決したようです。

関連情報