Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
winscp provides gui to copy the files right??? i got free winscp setup on internet and downloaded it but it provides GUI
. from GUI we have manually take the back up but muy case is i have copy files from linux to windows using *.bat file or shell script on linux
i am using VMWare and not putty to connect to Linux machine moreover Putty is not installed on my machine...
tell me something like scp
actually i also tried using scp to copy from unix machine to windows in follwing format:
scp /root/MQShell/MQ 'domain.user@172.20.106.60:e:/backup'
it gave error: Connection refused to port 22
here 172.20.106.60 is ip of my windows m/c
Windows doesn't have a SSH server, unless you install Cygwin and openssh, and so will reject connections on port 22 from scp on Linux. Unless you install Cygwin and openssh, you can't initiate a scp connection (over ssh) from Linux to Windows.
PuTTY is free, Cygwin is free - take you choice and install one or the other. If you need something that you can put in a .bat file, then I would be using PuTTY.
can you please explain me step by step what to do for scp to work from
Openssh command prompt i have installed openssh
i want to connect from 172.20.106.67 to windows's E: drive what will be the be command for thw same.
also in ..\etc\group and ..\etc\passwd what exactly do i put???
i am just saying that i am using vmware i.e. Virtual Linux machine and want to run a bat file on Visual Studio 2005 command prompt which will take back up of all the code files....
you don't put *anything* special in those files, you could easily knacker your system if you play with them directly. you already said you got scp working, so why are you wanting to mess with it still?
and if this is over a network then vmware is irrelevant.
ok now that i have started the the ssh server with net start opensshd
i am able to connect to windows m/c i.e.
scp /root/MQShell 'user@172.20.106.16:d:/test'
asks for password but once i enter the windows password it gives permission denied error...
this means connection has now been established .
I have shared test folder and given full cobntrol access to everyone still on linux scp gives Permission denied error what next to do????
I can't believe where this thread has gone. You started out trying to get uucp working and now we're discussing VMWare, PuTTY and Cygwin trying to move data between Linux and Windows servers.
If that was you original objective, why aren't you using Samba?
How about you lay your cards on the table and tell us what you're trying to achieve... and why...
I feel like I'm trying to hold on to a wet fish here - way too slippery.
actually first it was between unix m/c and now between unix and windows requirement has changed due to some reasons hence now i want to copy files between Linux and windows... moreover i know i can use samba but again it involves manual work and will hence consume more time as no of files whose backup is to be taken is large... hence i want to run a bat file on windows or shell script on Linux for the same...
this backup is daily activity and it takes lot of time if done manually as of now i am using konqueror for same...
i start smb service and then can access the linux machine from windows to transfer files between unix and windows...
else i use konqueror on linux m/c and i connect to windows m/c through its ip to transfer files between unix and windows...
i am sorry but thats all i know of samba...
are you talking about smbmount if yes i don't want to use smbmount as destination in the bacup script will not be hardcoded but will be taken from user with help of read command
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.