본문 바로가기
프로그래밍/리눅스

[리눅스/ftp 오류] 500 Illegal PORT command.

by 앗싸붕 2020. 10. 30.
728x90
반응형

 

500 Illegal PORT command

리눅스에서  ftp 접속은 성공적으로 연결되었는데 그 후 명령 수행 시 "500 Illegal PORT command." 오류가 발생할 경우가 있다. 이렇게 오류가 발생할 경우 어떤 명령도 수행되지 않고 같은 오류만 계속해서 반복됩니다.

 

[jungfo] ftp 122.199.255.2          
Connected to 122.199.255.2.
220 (vsFTPd 3.0.3)
Name (122.199.255.2:jungfo): vosadmin
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
500 Illegal PORT command.
ftp: bind: Address already in use

 

해결방법

해당 문제는 ftp 서버 설정에 따라 발생할 수 있으며 ftp 접속 모드를 passive 모드로 변경해주면 문제가 해결될 수 있습니다. passive 모드로 변경은 "pass" 명령으로 진행할 수 있습니다. 

 

ftp> pass
Passive mode on.
ftp> dir
227 Entering Passive Mode (122,199,255,2,105,6).
150 Here comes the directory listing.
drwxr-xr-x    5 1002     1002         4096 Aug 13 18:05 Test
drwxr-xr-x    6 1002     1002         4096 Mar 04  2019 Temp
-rw-r--r--    1 1002     1002     182153143 Mar 04  2019 test_files.zip
20 Directory send OK.
728x90
반응형

댓글