Questions on commiting through ssh

I have a question about how the ssh setup for gitlab works. I set up an ssh tokken and stored my public token in gitlab but when I tried to send my commit it asked for a password. I thought the point of the ssh was that i didn’t need to authenticate with a username and password? am I missing something here?