I'm sorry as I imagine different versions of this question have come up often but I can't seem to resolve my issue through others' posts.
I am trying to learn about other OSes for work, and my work uses Redhat Linux so I am trying to follow a guide to setup my own CentOS 7 server. I am running CentOS 7 and Ubuntu on VMs both through VirtualBox. I am running the traffic for the CentOS 7 server through port 2222.
I am able to connect via SSH from my Ubuntu Server with the command
ssh -p 2222 user@[host computer's IP]. I am even able to connect to my CentOS from my Windows Host Terminal with
ssh -p 2222 user@localhost. "User" is the actual username I'm trying to access and it connects. I've even setup an authentication key for both but when I try to swap the command to SFTP, it will give me a "Connection refused" or "Timed Out" then "Connection closed".
I've tried commands like
sftp -p 2222 user@[host ip], I've tried adding the port to the end of the IP with
:2222. I've tried
root@localhost. I've tried updating my
sshd_config but I don't think I understand it well enough to be certain the settings are all correct.
I've also tried to create a connection with some of the above information with FileZilla, to get this error:
Status: Connecting to 127.0.0.1:2222... Status: Connection established, waiting for welcome message... Response: SSH-2.0-OpenSSH_7.4 Error: Cannot establish FTP connection to an SFTP server. Please select proper protocol. Error: Critical error: Could not connect to server
I need to get a ZIP file onto my CentOS server and I cannot get this figured out. I would appreciate any guidance.