There are some helpful guiding questions in the comments but I thought I would provide a bit of an overview which might answer your original question.
I have a public ssh key provided by a third party. My company has
provided the host, port and username details for an SFTP connection,
and uploaded files.
From this description, it sounds like your company has already made a connections and successfully transferred files - that's great news! From this description, it sounds like your company was authenticating with a username/password combination.
When connecting to an SFTP, you have 2 options:
- Connect with Username/Password - requires entering Username/Password (just like logging into a website) when authenticating with the SFTP server from a remote location.
- Connecting with SSH private/public key pair - does not require any manual authentication, the SFTP server will store the public key and a client that wishes to connect will be given a private key. When connecting, the systems confirm matching keys to automatically authenticate.
Can I use a program like WinSCP to connect to the SFTP without having
access to the Private Key or a password? If so, how?
No. There may be a case where an FTP is not protected by some kind of user authentication. But in the case of SFTP, you will need to have one of the two options above. Typically, you will receive instructions from the group hosting the server with information connecting.
For instance, here is an example of a help doc for connecting WinSCP with a cloud-base SFTP server. The specifics may not directly apply to your set-up but the general workflow should be the same.
If not, how was my company able to upload files?
As mentioned above, it sounds like your company had a username/password combination.
Sorry if the above is very basic.
No worries, we all start somewhere! Best luck.