LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-08-2008, 04:19 AM   #16
Linuxfan0001
Member
 
Registered: Apr 2008
Posts: 47

Original Poster
Rep: Reputation: 15

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
 
Old 04-08-2008, 04:27 AM   #17
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
Our threads crossedd and you might have missed my mention of PuTTY and pscp.exe, which you can put in a .bat file.
 
Old 04-08-2008, 04:35 AM   #18
Linuxfan0001
Member
 
Registered: Apr 2008
Posts: 47

Original Poster
Rep: Reputation: 15
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
 
Old 04-08-2008, 04:41 AM   #19
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
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.
 
Old 04-08-2008, 05:15 AM   #20
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
how can you compare putty and vmware?? they have *nothing* in common.
 
Old 04-08-2008, 05:18 AM   #21
Linuxfan0001
Member
 
Registered: Apr 2008
Posts: 47

Original Poster
Rep: Reputation: 15
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???
 
Old 04-08-2008, 05:21 AM   #22
Linuxfan0001
Member
 
Registered: Apr 2008
Posts: 47

Original Poster
Rep: Reputation: 15
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....
 
Old 04-08-2008, 05:57 AM   #23
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 04-08-2008, 06:12 AM   #24
Linuxfan0001
Member
 
Registered: Apr 2008
Posts: 47

Original Poster
Rep: Reputation: 15
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????
 
Old 04-08-2008, 06:28 AM   #25
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
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.
 
Old 04-08-2008, 06:35 AM   #26
Linuxfan0001
Member
 
Registered: Apr 2008
Posts: 47

Original Poster
Rep: Reputation: 15
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...
 
Old 04-08-2008, 06:42 AM   #27
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
samba requires manual work?? what are you talking about? do you know what samba is?
 
Old 04-08-2008, 06:55 AM   #28
Linuxfan0001
Member
 
Registered: Apr 2008
Posts: 47

Original Poster
Rep: Reputation: 15
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...
 
Old 04-08-2008, 07:13 AM   #29
Linuxfan0001
Member
 
Registered: Apr 2008
Posts: 47

Original Poster
Rep: Reputation: 15
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
 
Old 04-08-2008, 11:07 PM   #30
Linuxfan0001
Member
 
Registered: Apr 2008
Posts: 47

Original Poster
Rep: Reputation: 15
awaiting some reply please let me know how am i supposed to eliminate 'permission denied error'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
files on different machines anillohchab007 Linux - Server 4 01-08-2008 10:50 AM
Transfer using ftp command john_smith Linux - Newbie 7 12-03-2007 02:03 AM
unix command to linux command leonidas Linux - General 1 09-10-2004 12:40 AM
Network connection between Linux/UNIX machines marv77 Linux - Newbie 3 08-13-2004 09:01 AM
need to transfer unix sendmail server to upgraded box garrett *BSD 1 01-23-2004 04:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration