I am working on logging into ftp from our Debian server to another server. It's working from localhost, but not from our server. I have opened ports 21,22 with the following command, but no luck. The -v flag doesn't give any extra verbose input. What am I doing wrong?
Commands :
iptables -A OUTPUT -p tcp -d IP --dport 21 -j ACCEPT
iptables -A OUTPUT -p tcp -d IP --dport 22 -j ACCEPT
iptables -A INPUT -p tcp -s IP --dport 21 -j ACCEPT
iptables -A INPUT -p tcp -s IP --dport 22 -j ACCEPT
Log :
ftp -v ftp.domain.de
Connected to ftp.domain.de.
220-Welcome To DOMAIN
220 Service ready for new user
Name (ftp.domain.de:root): username
331 Password required
Password:
230 User logged in
Remote system type is MACOS.
ftp> ls
200 PORT command successful
150 Opening connection
Thank you.