![SFTP用lftpが機能しません。 0 から 'ls' が停止しました。 [接続中...]](https://linux33.com/image/229573/SFTP%E7%94%A8lftp%E3%81%8C%E6%A9%9F%E8%83%BD%E3%81%97%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%200%20%E3%81%8B%E3%82%89%20'ls'%20%E3%81%8C%E5%81%9C%E6%AD%A2%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%20%5B%E6%8E%A5%E7%B6%9A%E4%B8%AD...%5D.png)
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.