using: ssh host command

I will remote a connection to a Unix server and launch a command on this server. This commnand requires me to set a view in Clearcase to see the vob element. How do I set a view an run a command with ssh with the syntax: ssh host command?

I cannot help you with the Clearcase thing, but to execute a remote command using ssh you can use the following syntax:

ssh -l <username> <hostname> <command>

You can use this sample command and see if it works.

ssh hostname "ls -l"

where hostname is server name and anything inside the double quotes is the command.

I also tried to run the command remotely but it does not work. What other condition should be met to run the command remotely like

ssh -l username remoteserver command

thanks