net use syntax

From: Ming-Ching Tiew <mingching.tiew_at_**********.***>
Date: Fri Nov 24 2006 - 05:46:35 EST

I have been trying to solve my problem of using shares when
I remotely signon to a OpenSSH windows machine without
success.

I want to programmatically perform a 'net use'. These are some
of the things I tried with the error message I got :-

 # ssh -i rsa.pub -l user Server1 'net use \\192.168.1.1\share'

System error 67 has occurred.

The network name cannot be found.

I also tried using Netbios over netbeui ( instead of ip over netbeui ),
the same error I got :-

 # ssh -i rsa.pub -l user Server1 'net use \\Server2\share'

Yeah I know I need to supplied username and password, but right now
the problem is I can never get it to accept the share name.

However, If I sign on and get a command prompt, typing 'net use \\server2\share' is
accepted ( also the IP syntax is working too ).

I also tried forward slash :-

 # ssh -i rsa.pub -l user Server1 'net use //Server2/share'

Then it will reply with error too :-

The option //Server2/share is unknown.
.....

Please help this is driving me nuts !

--
List Info:      http://erdelynet.com/ssh-l/
List Archives:  http://erdelynet.com/archive/ssh-l/
To Unsubscribe: Mail mailto:ssh+unsubscribe@erdelynet.com
Received on Fri Nov 24 05:47:18 2006

This archive was generated by hypermail 2.1.8 : Fri Nov 24 2006 - 05:47:19 EST