It does seem I found a pattern when looking at netstat. All the SFTP bindings to the hostname:port do not function as opposed to 0.0.0.0:port all work
Why not bind to the public IP assigned to the instance instead of 0.0.0.0?
So after ssh into my host, this is what I ran to see if it connects.
AMP Instance (Active|Running|SCP:Successful)
scp -P 2223 localhost:userdata.json /home/user
fingerprint is not known, Are you sure you want to connect yes/no
Instance 01 (Suspended|Docker|SCP:Refused)
scp -P 2224 localhost:userdata.json /home/user
ssh: connect to host localhost port 2224 : connection refused
Instance 02 (Active|Running|SCP:Successful)
scp -P 2225 localhost:userdata.json /home/user
fingerprint is not known, Are you sure you want to connect yes/no
Instance 03 (Active|Running|Docker|SCP:Successful)
scp -P 2226 localhost:userdata.json /home/user
fingerprint is not known, Are you sure you want to connect yes/no
Instance 04 (Active|Running|Docker|SCP:Successful)
scp -P 2227 localhost:userdata.json /home/user
fingerprint is not known, Are you sure you want to connect yes/no
Instance 05 (Active|Stopped|Docker|SCP:Refused)
scp -P 2228 localhost:userdata.json /home/user
ssh: connect to host localhost port 2255 : connection refused
Instance 06 (Active|Stopped|Docker|SCP:Refused)
scp -P 2229 localhost:userdata.json /home/user
ssh: connect to host localhost port 2255 : connection refused
Instance 07 (Active|Running|Docker|SCP:Refused)
scp -P 2230 localhost:userdata.json /home/user
ssh: connect to host localhost port 2255 : connection refused
Instance 08 (Offline|Docker|SCP:Refused)
scp -P 2231 localhost:userdata.json /home/user
ssh: connect to host localhost port 2255 : connection refused
Instance 09 (Active|Running|Docker|SCP:Successful)
scp -P 2232 localhost:userdata.json /home/user
fingerprint is not known, Are you sure you want to connect yes/no
Not sure if there is any pattern here. Several Active instances should be accepting SFTP connections. Instances 5, 6, 7 are Active and online yet they are refused connections.
ampinstmgr ports for
Instance 5
[Info] LISTENING 2228 TCP (FileManagerPlugin.DFTP.DFTPPortNumber)
Instance 6
[Info] LISTENING 2229 TCP (FileManagerPlugin.DFTP.DFTPPortNumber)
Instance 7
[Info] LISTENING 2230 TCP (FileManagerPlugin.DFTP.DFTPPortNumber)
IPTables
42 3456 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:2228 /* AMP:Terraria01:FileManagerPlugin.SFTP.SFTPPortNumber */
18 2483 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:2229 /* AMP:FrozenFlame01:FileManagerPlugin.SFTP.SFTPPortNumber */
18 2483 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:2230 /* AMP:MCJava101:FileManagerPlugin.SFTP.SFTPPortNumber */
It does seem I found a pattern when looking at netstat. All the SFTP bindings to the hostname:port do not function as opposed to 0.0.0.0:port all work
Netstat
tcp 0 0 0.0.0.0:2223 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2235 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2232 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2239 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2236 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2237 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2226 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2227 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2225 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2250 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2251 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2248 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2249 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2252 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2242 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2243 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2246 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2244 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2245 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2238 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2234 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2233 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2230 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2228 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2229 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2258 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2259 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2256 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2257 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2255 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2247 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2240 0.0.0.0:* LISTEN
tcp 0 0 hvm-cld-amp:2241 0.0.0.0:* LISTEN