Is it possible to attributes from knife command (ssh),
e.g.
knife ssh ‘role:server’ ‘sudo chef-client’ <-- how to pass attributes to remote?
You should set the attributes you want on the node object(s) on the Chef Server.
You can do this through a variety of methods.