SFTP用lftpが機能しません。 0 から 'ls' が停止しました。 [接続中...]

SFTP用lftpが機能しません。 0 から 'ls' が停止しました。 [接続中...]

lftpの使用に問題があります。動作が停止しました。

`ls' at 0 [Connecting...]

SFTP接続に使用されます。

バージョン:

  • Linux 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu 1月4日 14:55:32 EST 2024 x86_64 x86_64 x86_64 GNU/Linux
  • リモートFTPバージョン4.4.8

これが私が実行する方法です。

user@server:~$ lftp -d
lftp :~> open -u Uname,Passwd -p 22 sftp://test.host.com
lftp [email protected]:~> ls
---- Running connect program (ssh -a -x -s -l Uname -p 22 test.host.com sftp)
---> sending a packet, length=5, type=1(INIT), id=0
<--- Password authentication
`ls' at 0 [Connecting...]

私はlftp set成功せずにさまざまなコマンドを試してみました。

sftpその後、Linuxでクライアントを使用して接続しようとしましたが、うまくいきました。

user@server:~$ sftp -oPort=22 [email protected]
Password authentication
Uname's password
Connected to test.host.com.
sftp> ls
In  Out  Received
sftp>

ホストキーの指紋を確認しましたが、/home/user/.ssh/known_hostsファイルにあります。

使用時になぜ機能しないのかわかりませんlftp

編集1:

user@server:~$ lftp sftp://test.host.com
lftp test.host.com:~>

編集2(sshを使用):

user@server:~$ ssh [email protected]
Password authentication
Uname's password
PTY allocation request failed on channel 0

Sorry, SFTP Only - pty-req not allowed.
Connection to test.host.com closed.

ベストアンサー1

おすすめ記事