どういう意味ですか? ssh_exchange_identification:リモートホストによって接続が終了しました。

どういう意味ですか? ssh_exchange_identification:リモートホストによって接続が終了しました。

自宅の他の場所からアクセスできるSSHファイルサーバーを作成しようとしています。現在、Arch Linuxカーネル4.16.3-1-ARCHを実行しています。他のコンピュータからLAN経由で簡単にアクセスできます。

bred@loaf:~$ ssh [email protected] -p 80
[email protected]'s password:

しかし、WANを介してアクセスすることはより困難でした。 22番ポートが詰まっているようで、80番ポートを使用しようとしました。 80が開いていることを知っていますismyportopen.com。私が何をしているのかよく分からないし、アーチウィキが私を失望させると思います。

同じLAN上でWAN経由で接続しようとしたときにこのエラーが発生しました。

bred@loaf:~$ ssh [email protected] -vv -p 80
OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2l  25 May 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "65.157.96.234" port 80
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 65.157.96.234 [65.157.96.234] port 80.
debug1: connect to address 65.157.96.234 port 80: Connection refused
ssh: connect to host 65.157.96.234 port 80: Connection refused

同じ LAN 上のコンピュータで WAN 経由で接続しようとし、ホスト以外の同じ LAN コンピュータ上で VPN 経由で接続しようとすると、このエラーが発生します。

bred@loaf:~$ ssh [email protected] -vv -p 80
OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2l  25 May 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "65.157.96.234" port 80
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 65.157.96.234 [65.157.96.234] port 80.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/bred/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/bred/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/bred/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/bred/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/bred/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/bred/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/bred/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/bred/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
ssh_exchange_identification: Connection closed by remote host

以下は、コメント化された行を除くホストシステムの/etc/ssh/sshd_configのコピーです。

AllowUsers landau
Port 80
ChallengeResponseAuthentication no
UsePAM yes
Subsystem       sftp    /usr/lib/ssh/sftp-server

私のホストの/etc/hosts.allowと/etc/hosts.denyはデフォルトでは存在しません。sshd:ALL許可ファイルに追加しましたが役に立たないようです。

ベストアンサー1

おすすめ記事