FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-20-2012, 01:30 PM
lina
 
Default how to copy files from linux to windows via terminal

On Monday 20,August,2012 09:10 PM, Jon Dowland wrote:
> On Mon, Aug 20, 2012 at 09:04:27PM +0800, lina wrote:
>> how to copy files from linux to windows via terminal.
>
> The key issue is what method of access you are using to the Windows machine.
> Windows file sharing is perhaps easiest, in which case you can copy stuff
> via 'samba' on the Linux host. 'smbclient //wherever/foo, put some-file'
Strangely I had purged samba long long time ago, why I still have the
smbclient here,

# dpkg --get-selections | grep samba
samba-common install

# dpkg --get-selections | grep smbclient
libsmbclient:amd64 install
smbclient install

For security reason, shall I purge the three?

Thanks,
>
>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 50323C0D.9050300@gmail.com">http://lists.debian.org/50323C0D.9050300@gmail.com
 
Old 08-20-2012, 01:38 PM
 
Default how to copy files from linux to windows via terminal

> Hi,
>
> how to copy files from linux to windows via terminal.
>
> I know putty, prehaps I should install it?
>
> Better some already-installed program.
>
> Thanks with best regards,

Please provide more information. Is "windows" on a separate partition on
your disk drive or is it running on another machine on your local network?

Mark


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: a9fa837d6282d172c88e3bb4c9aa8549.squirrel@neidorff .com">http://lists.debian.org/a9fa837d6282d172c88e3bb4c9aa8549.squirrel@neidorff .com
 
Old 08-20-2012, 02:03 PM
Gaël DONVAL
 
Default how to copy files from linux to windows via terminal

Le lundi 20 août 2012 à 21:30 +0800, lina a écrit :
> > The key issue is what method of access you are using to the Windows machine.
> > Windows file sharing is perhaps easiest, in which case you can copy stuff
> > via 'samba' on the Linux host. 'smbclient //wherever/foo, put some-file'
This or smbfs as suggested by Jochen seems to be the way to go.

> Strangely I had purged samba long long time ago, why I still have the
> smbclient here,
These are not related: smbclient is a separated package.

> # dpkg --get-selections | grep samba
> samba-common install
>
> # dpkg --get-selections | grep smbclient
> libsmbclient:amd64 install
> smbclient install
>
> For security reason, shall I purge the three?
Not sure of what you mean. I don't see possible security threat here.
But I am no security expert.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1345471410.4593.7.camel@p76-nom-gd.cnrs-imn.fr">http://lists.debian.org/1345471410.4593.7.camel@p76-nom-gd.cnrs-imn.fr
 
Old 08-20-2012, 02:15 PM
Camaleón
 
Default how to copy files from linux to windows via terminal

On Mon, 20 Aug 2012 21:04:27 +0800, lina wrote:

> how to copy files from linux to windows via terminal.

That will depend on what services are running in windows (smb, ssh,
ftp...) to communicate with rest of the word.

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/k0tgpd$mg3$7@ger.gmane.org
 
Old 08-20-2012, 02:18 PM
lina
 
Default how to copy files from linux to windows via terminal

On Monday 20,August,2012 10:15 PM, Camaleón wrote:
> On Mon, 20 Aug 2012 21:04:27 +0800, lina wrote:
>
>> how to copy files from linux to windows via terminal.
>
> That will depend on what services are running in windows (smb, ssh,
> ftp...) to communicate with rest of the word.
I don't know how to check exactly,

here shows:

135/tcp open msrpc
139/tcp open netbios-ssn
445/tcp open microsoft-ds
1025/tcp open NFS-or-IIS
1026/tcp open LSA-or-nterm
1027/tcp open IIS
1044/tcp open dcutility
1056/tcp open vfo
1057/tcp open startron
2179/tcp open vmrdp
3071/tcp open csd-mgmt-port
3389/tcp open ms-wbt-server


>
> Greetings,
Kind regards,
>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 5032473D.6030107@gmail.com">http://lists.debian.org/5032473D.6030107@gmail.com
 
Old 08-20-2012, 02:31 PM
Gaël DONVAL
 
Default how to copy files from linux to windows via terminal

Le lundi 20 août 2012 à 22:18 +0800, lina a écrit :
> 135/tcp open msrpc
> 139/tcp open netbios-ssn
> 445/tcp open microsoft-ds
> 1025/tcp open NFS-or-IIS
> 1026/tcp open LSA-or-nterm
> 1027/tcp open IIS
> 1044/tcp open dcutility
> 1056/tcp open vfo
> 1057/tcp open startron
> 2179/tcp open vmrdp
> 3071/tcp open csd-mgmt-port
> 3389/tcp open ms-wbt-server
You are running SMB (ports 135, 139 and 445). All you have to do is
configuring directories to share (under Windows) and then either mount
this directory using smbfs or use directly your file browser (nautilus
by default under Gnome).

There are tutorials on the net.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1345473114.4593.27.camel@p76-nom-gd.cnrs-imn.fr">http://lists.debian.org/1345473114.4593.27.camel@p76-nom-gd.cnrs-imn.fr
 
Old 08-20-2012, 02:56 PM
Camaleón
 
Default how to copy files from linux to windows via terminal

On Mon, 20 Aug 2012 22:18:37 +0800, lina wrote:

> On Monday 20,August,2012 10:15 PM, Camaleón wrote:
>> On Mon, 20 Aug 2012 21:04:27 +0800, lina wrote:
>>
>>> how to copy files from linux to windows via terminal.
>>
>> That will depend on what services are running in windows (smb, ssh,
>> ftp...) to communicate with rest of the word.

> I don't know how to check exactly,
>
> here shows:
>
> 135/tcp open msrpc
> 139/tcp open netbios-ssn
> 445/tcp open microsoft-ds

(...)

That should be enough for smbclinet to do the job.

>From the linux side:

smbclient //windows_machine/your_share -U your_windows_username
[password] [enter]

And then some basic commands:

ls → list files/folders
put → upload files
get → download files

("man smbclient" for more info/options)

THT :-)

Greetings

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/k0tj66$mg3$12@ger.gmane.org
 
Old 08-20-2012, 06:12 PM
Joe
 
Default how to copy files from linux to windows via terminal

On Mon, 20 Aug 2012 21:04:27 +0800
lina <lina.lastname@gmail.com> wrote:

> Hi,
>
> how to copy files from linux to windows via terminal.
>
> I know putty, prehaps I should install it?
>
> Better some already-installed program.
>
> Thanks with best regards,
>
>

For a clean, easy job with a few files, yes, I'd go with puTTY. PuTTY is
fine for low volumes, or you can probably find WinSCP which also uses
ssh. PuTTY will not use OpenSSH keys (or it wouldn't last time I tried)
but it will generate keys which OpenSSH can use. Some Windows FTP
clients will also do SCP if pushed.

If you have full control of non-domain Windows workstations, and many
files to move, then samba is probably a good bet. I've had trouble with
Windows domains, which tend to insist on higher security levels than a
typical Linux samba server. I think samba tends to run about two
server generations behind Microsoft.

Finally, the RDP protocol does permit mapping local hard drive
partitions into the client session, though I've never tried from a
Linux client, I don't know if any can do it. That would presumably also
use samba, but in a different manner than a straight network
connection. That may be disabled by group policy in a domain
environment, as it does constitute a significant security risk.

--
Joe


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120820191218.1b474336@jretrading.com">http://lists.debian.org/20120820191218.1b474336@jretrading.com
 
Old 08-21-2012, 07:26 AM
Julien Groselle
 
Default how to copy files from linux to windows via terminal

Hi,*Just use winSCP on your Windows...
It's an opensource project which provide file transfert over ssh tunnel.---JG



2012/8/20 Joe <joe@jretrading.com>


On Mon, 20 Aug 2012 21:04:27 +0800

lina <lina.lastname@gmail.com> wrote:



> Hi,

>

> how to copy files from linux to windows via terminal.

>

> I know putty, prehaps I should install it?

>

> Better some already-installed program.

>

> Thanks with best regards,

>

>



For a clean, easy job with a few files, yes, I'd go with puTTY. PuTTY is

fine for low volumes, or you can probably find WinSCP which also uses

ssh. PuTTY will not use OpenSSH keys (or it wouldn't last time I tried)

but it will generate keys which OpenSSH can use. Some Windows FTP

clients will also do SCP if pushed.



If you have full control of non-domain Windows workstations, and many

files to move, then samba is probably a good bet. I've had trouble with

Windows domains, which tend to insist on higher security levels than a

typical Linux samba server. I think samba tends to run about two

server generations behind Microsoft.



Finally, the RDP protocol does permit mapping local hard drive

partitions into the client session, though I've never tried from a

Linux client, I don't know if any can do it. That would presumably also

use samba, but in a different manner than a straight network

connection. That may be disabled by group policy in a domain

environment, as it does constitute a significant security risk.



--

Joe





--

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org

with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: http://lists.debian.org/20120820191218.1b474336@jretrading.com
 

Thread Tools




All times are GMT. The time now is 06:37 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org