ManjaroからAndroid(UserLand)へ ssh できるのに、scp しようとすると以下エラーになった。
scp: Connection closed
調べていると、以下にたどり着いた。
Note: Since OpenSSH 9.0 the scp utility uses the SFTP protocol by default. The -O option must be used to use the legacy SCP protocol.
注: OpenSSH 9.0 以降、scp ユーティリティはデフォルトで SFTP プロトコルを使用します。レガシー SCP プロトコルを使用するには、-O オプションを使用する必要があります。
Warning: The scp protocol is outdated, inflexible and not readily fixed. Its authors recommend the use of more modern protocols like sftp and rsync for file transfer instead.[1]
警告: scp プロトコルは時代遅れで柔軟性に欠けており、すぐには修正できません。その作成者は、代わりに sftp や rsync などのより新しいプロトコルをファイル転送に使用することを推奨しています [1]。
-O
オプションで回避できるようだが、これまたハマりそうだな。。(scpがタイプ数少なくて便利だったのに。。)