I have a GUI profile for a site that connects properly. When I use the profile at a command line, the profile port designation is not used. The profile site name is remoteSiteName, Host URL is remotesite.net, Port 22, Connection type SSH/SFTP. When referenced from the command line as -site remoteSiteName the connection is attempted on port 21 rather than port 22.
I can specify the port using the command line sftp://remotesite.net:22 but then I need tt enter credentials on every launch, which defeats the purpose of command line silent execution.
Either I need to include credentials with the command line URL specification or get the profile to actually use the correct port. How do I get either or both of these to work?