SSH は機能するが SCP は機能しない

SSH は機能するが SCP は機能しない

SSH キーを使用して SSH 経由で正常に接続できるリモート VPS があります。/etc/ssh/sshd_config でパスワード認証を無効にしました。

同様のトピックに関する他のスレッドをいくつか確認したにもかかわらず、scp を動作させることができませんでした。私が実際に行っていることとその結果は次のとおりです (偶然にも、ローカルとリモートの両方で同じユーザー名です)。

scp -vvv -i /home/xixor/.ssh/id_rsa /home/xixor/testfile1 [email protected]:/home/xixor/temp

結果:

Executing: program /usr/bin/ssh host xxx.xxx.xx.xxx, user xixor, command scp -v -t /home/xixor/temp
OpenSSH_8.4p1, OpenSSL 1.1.1i  8 Dec 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolve_canonicalize: hostname xxx.xxx.xx.xxx is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/xixor/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/xixor/.ssh/known_hosts2'
debug2: ssh_connect_direct
debug1: Connecting to xxx.xxx.xx.xxx [xxx.xxx.xx.xxx] port 22.
debug1: connect to address xxx.xxx.xx.xxx port 22: Connection timed out
ssh: connect to host xxx.xxx.xx.xxx port 22: Connection timed out
lost connection

scp はリモート サーバーにインストールされており、そのサーバー上の場所との間でコピーするだけです。サーバー上のどこかに、何が起こっているかについての詳細情報を提供するデバッグ ログはありますか? (つまり、-vvv フラグを使用してコマンドを実行したときにローカル マシンから出力される上記の情報を超える情報)

関連情報