Welcome to the Jazz Community Forum
Can someone provide me an example of logging into RTC using SCM with the smartcard option?

I am using RTC 6.0.5 and we are required to use a smartcard/CAC when we login.
When I start the eclipse client and login, everything works great.
However when I try scm or lscm it does not. The following is the command I enter:
lscm login -r https://happydays.are.here.mil/ccm -n GATOR -P smartcard
When I do I get the following response:
Problem running 'login':
--password cannot be used without --username or --certificate. Try 'lscm help login' for more information.
I do not know if the syntax is correct for using a smart card (e.g. the way I selected to use smartcard).
I do not know what to put in the command, both username and certificate require an argument.
I do not know what that argument would be.
Could someone provide me an example of logging into a repository via scm/lscm using the smartcard option?
Accepted answer

This works for me 6.0.5.
One other answer

I don't have a smartcard, but the documentation: https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/login.html&scope=null
Comments

If I remember it correctly you need to provide the smart card alias to the -u option. You can find the aliases registered with the smart card by running 'lscm list smartcard-aliases'

Subcommand "login" does not support option "--smartcard". Try 'lscm help login' for more information.

The error message is still showing the option as "--smartcard". It should be "--smartCard" (with a capital 'C'). Can you cut and paste your command here?