net use syntax
"Ming-Ching Tiew" <[email protected]> Fri, 24 Nov 2006 18:46:35 +0800
| Newsgroups | gmane.network.ssh.windows |
|---|---|
| Message-ID | <010d01c70fb5$cfbdd410$0100a8c0@newlife> |
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:[email protected]