![SFTP용 lftp가 작동하지 않습니다. 0에서 'ls'가 멈췄습니다. [연결 중...]](https://linux55.com/image/229573/SFTP%EC%9A%A9%20lftp%EA%B0%80%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4.%200%EC%97%90%EC%84%9C%20'ls'%EA%B0%80%20%EB%A9%88%EC%B7%84%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%5B%EC%97%B0%EA%B2%B0%20%EC%A4%91...%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.