PDA

View Full Version : SSH part two: another doubt.


ravellian
2006-11-04, 09:39 AM CST
Hello forum,

I'm trying to mount a Samba share in Windows, from my Linux box, via SSH. When I do it locally, it works beautifully - the simple

C:> net use * \\(machine IP)\(samba share name)

Works wonders, which makes me happy. However, when I try to do it via SSH, with

# ssh user@machine "net use * \\(machine IP)\(samba share name)"

It gives me an error 67 (not found). I tried, naturally, Google; but everything I did failed. Since it's something happening from the Linux-side of the question, I thought I might try here.

If I do a simple

# ssh user@machine

It logs normally and brings me a c:> prompt. Once it's logged and given me the c:> prompt, I can do the net use etc etc normally. However, I wanted to do it in only one command, because my idea is to have an application I'm developing execute the SSH command, if that makes any sense.

Many thanks,
R.

David Becker
2006-11-04, 10:23 AM CST
Probably just a PATH problem. Try specifying the full pathname of 'net'.

David