When I log in to SSH while forwarding my local port, it's 21 FTP port, with the command:
ssh -R 2101:localhost:21 [email protected] -p 8288
After successfully logging in, I sent this command in the SSH:
ftp ikiw@localhost -p 2101
The command runs normally, and I also successfully logged into FTP smoothly, but when in FTP, I want to see a list of files available with the command ls or dir and I get this error:
ftp: Can't connect to '::1:27394': Connection refused
What is wrong? Does it seem like FTP creates a new port randomly when I run the ls command?
I want to forward my local FTP to my SSH/VPS, and run FTP from my SSH/VPS to my local machine normally, can someone help me and provide a solution? Thank you very much! :D