I am trying to SFTP with Filezilla but it is not able to connect to the server and I think this is due to my firewall rules?I can SSH absolutely fine. The port for SSH is 6128. Can anyone tell me what changes I would have to make to allow an FTP connection over SSH given that SSH is already working?(Here are my IPtables rules)Chain INPUT (policy ACCEPT)target     prot opt source               destinationfail2ban-ssh  tcp  --  anywhere             anywhere             multiport dports sshACCEPT     all  --  anywhere             anywhereREJECT     all  --  anywhere             loopback/8           reject-with icmp-port-unreachableACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHEDACCEPT     udp  --  anywhere             anywhere             udp dpt:9987ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:10011ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:30033ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:httpACCEPT     tcp  --  anywhere             anywhere             tcp dpt:httpsACCEPT     tcp  --  anywhere             anywhere             state NEW tcp dpt:6128ACCEPT     icmp --  anywhere             anywhere             icmp echo-requestLOG        all  --  anywhere             anywhere             limit: avg 5/min burst 5 LOG level debug prefix iptables denied: DROP       all  --  anywhere             anywhereChain FORWARD (policy ACCEPT)target     prot opt source               destinationDROP       all  --  anywhere             anywhereChain OUTPUT (policy ACCEPT)target     prot opt source               destinationACCEPT     all  --  anywhere             anywhereChain fail2ban-ssh (1 references)target     prot opt source               destinationRETURN     all  --  anywhere             anywhere
SSH console login working but SFTP does not, why?
ssh;sftp
To access your sftp from other hosts, please make sure following is installed and configured properly.Installed OpenSSH serversConfigured sshd_configPubkeyAuthentication yesSubsystem sftp internal-sftpAdded your public key to ~/.ssh/authorized_keysStart the ssh server with port 22/TCP open # /etc/init.d/sshd start# iptables -I INPUT -j ACCEPT -p tcp --dport 22Finally, test $ sftp <login>@<hostname>