I have setup an SSH tunnel to connect to an AWS transfer server through FileZilla
ssh -i ~/bastion-server.pem -L 3111:vpce-id.eu-west-3.vpce.amazonaws.com:22 ec2-user@x.x.x.x
Which is working fine.
Then in FileZilla I have my connection string
Host: 127.0.0.1 Port:3111 Username:sftpuser key:transfer-server.pem
The FileZilla log says
Status: Connecting to 127.0.0.1:3111...
Status: Using username "Username:sftpuser".
Status: Authenticating with public key "~/bastion-server.pem" from agent
Why is FileZilla using bastion-server.pem and how can I make it use transfer-server.pem