transferring files from win7 to opensuse 12.1

hi

Q : how to transfer files from windows 7 to opensuse 12.1 31.0.12 ? step by step please :slight_smile:

I’ve tried before and (failed :() after setting up SABMA (failed) cannot login GUI

Thanks
suse-acer

If you only want to transfer files FROM Windows TO openSUSE, you don’t have to setup SAMBA.

Just type “smb:/” as address in your favorite filemanager (dolphin, konqueror, nautilus, don’t know about others; this even works in Firefox) and you should see your network hosts. Or click on “Browse Network” or similar.
Or use “smbclient” in a terminal window.

On 2013-08-01 14:16, suse acer wrote:
>
> hi
>
> Q : how to transfer files from windows 7 to opensuse 12.1 31.0.12 ?
> step by step please :slight_smile:

Sporadic use, or a shared folder?

The first one, setup ssh from Windows to Linux (puty), then use the
similar program that I think is called winscp, using ssh protocol. Both
are Windows programs.

> I’ve tried before and (failed :() ‘after setting up SABMA (failed)
> cannot login GUI’ (http://tinyurl.com/ob5x6bf)

Samba and Suse:
HowTo Set up an openSUSE-Windows Home Office LAN/Network.

Chapter 19. Samba


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

thanks for reply

asma@linux-9uod:~> /usr/bin/smbclient -L acer-PC
Enter asma’s password:
Anonymous login successful
Domain=[HOME2-ACER] OS=[Windows 7 Starter 7601 Service Pack 1] Server=[Windows 7 Starter 6.1]

    Sharename       Type      Comment
    ---------       ----      -------

Error returning browse list: NT_STATUS_ACCESS_DENIED
Anonymous login successful
Domain=[HOME2-ACER] OS=[Windows 7 Starter 7601 Service Pack 1] Server=[Windows 7 Starter 6.1]

    Server               Comment
    ---------            -------
    ACER-PC              asma-acer

    Workgroup            Master
    ---------            -------
    HOME2-ACER           ACER-PC
    WORKGROUP            USER-6F082CE509

:question:

thanks for reply

Hi suse_acer,

From your screenshots I see you may be confused about IP address and name resolving. If you are not sure name resolving is correctly configured, for a temporary basis you should use IP address. IP address is the only thing in common between Samba, ssh, WebDAV, etc.

I suppose that acer-PC and linux-9uod are both connected to the internet via a router. Hence, you have a local network and the internet. When you use What-Is-My-IP websites, such as this one, what you see your IP address on the internet. So, when you are trying from acer-PC to ssh 2.51.129.127 (the IP of linux-9uod on the internet), your paquets have the following path: acer-PC->router->internet->router… And nothing, because your router surely blocks incoming ssh connections from the internet. This is why you get the following error: Server unexpectedly closed network connection.

What you must do is ssh to the local IP of linux-9uod. In that case, your paquets will have the following path acer-PC->router->linux-9uod and will (hopefully) not be blocked.

You can easily retrieve the local IP of linux-9uod using ifconfig. You should then have an output like the following:


eth0      Link encap:Ethernet  HWaddr 00:07:E9:D5:E0:5D  
          **inet addr:192.168.14.1**  Bcast:192.168.14.255  Mask:255.255.255.0
          inet6 addr: 2001:6a8:204::1/48 Scope:Global
          inet6 addr: fe80::207:e9ff:fed5:e05d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:346293248 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1089423722 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1501808809 (1.3 GiB)  TX bytes:4184566400 (3.8 GiB)  

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Here, the local IP for the interface eth0 (Ethernet port) is 192.168.14.1.

Before trying to ssh to linux-9uod, don’t forget to:

  1. start sshd deamon on linux-9uod (using YaST “Run level” module for example)
  2. open ssh ports of the firewall
    [LIST=1]
  3. on linux-9uod (using YaST “firewall” module for example, you can set the interface zone to internal)
  4. on acer-PC (depending on your Windows configuration and AV software installed)

[/LIST]

Don’t forget that openSUSE has a fine documentation and even a step-by-step guide for copying and sharing files (openSUSE Reference, Chap. 23).

**Thanks for reply **

(1) /sbin/ifconfig


eth0    Link encap:Ethernet  HWaddr 00:1E:8C:FC:BD:0C  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:16 Base address:0xec00 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:84 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:6575 (6.4 Kb)  TX bytes:6575 (6.4 Kb)

wlan0     Link encap:Ethernet  HWaddr 00:16:44:93:D6:63  
          inet addr:**192.168.1.22**  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::216:44ff:fe93:d663/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27398 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26238 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:16409877 (15.6 Mb)  TX bytes:6308457 (6.0 Mb)

Before trying to ssh to linux-9uod, don’t forget to:

  1. start sshd deamon on linux-9uod (using YaST “Run level” module for example)
  2. open ssh ports of the firewall
    [LIST=1]
  3. on linux-9uod (using YaST “firewall” module for example, you can set the interface zone to internal)
  4. on acer-PC (depending on your Windows configuration and AV software installed)

[/LIST]

DONE :good:

SOOOOOOOOOOOOOOlved :good:

**(a) Putty **

https://lh6.googleusercontent.com/-B2HHnt9KYOA/UfyVuV9vLNI/AAAAAAAAAPs/E94IYDD64dQ/w672-h504-no/20130803_093113.jpg

(b) winscp

https://lh3.googleusercontent.com/-DLbOSBSyklQ/UfybntBz93I/AAAAAAAAAQw/Oip7hQFjAnc/w672-h504-no/20130803_095611.jpg

Nice ! Have fun with openSUSE ;).