Sunday, November 13, 2011

telnet, openssh, spc Ubuntu to Windows

I am currently doing some research on different technologies to use for controlling one machine from another or do things like copying files and folders between different machines that are on a network. In particular I am interested in different technologies that work well between Windows and Linux machines.

I was quite surprised that after struggling for quite some time last night I was still unable to copy files from a Windows machine to a machine running Ubuntu, attempting to use scp from the Ubuntu machine in order to get some files. I am sure many people will read this hoping to find the answer to the problem; however as of right now, I don't have an answer for you if you are attempting to access the Windows machine from Ubuntu and trying to copy the files and folders from the Windows machine to Ubuntu.

Fortunately I am on a home network and my network is secure and behind a firewall so I have been able to use the samba client in Ubuntu.

The samba client is pretty straight forward to use. I am not in front of my Ubuntu machine right now, but I will try to get the syntax right in the example. In my case I shared the C:\Users folder on my Windows machine. One the Ubuntu machine we can then do something like:

smbclient //192.168.1.2/Users -k -c "get file.txt"

This command will get the "file.txt" file from the C:\Users directory on the Windows machine and put it in the current working directory. This is just a basic example; however there is an excellent resource here.

Also, as always, feel free to let me know if I can be of any more assistance :)

Thanks,

Hermann

No comments:

Post a Comment