File Share between Laptop and PC - PC and Laptop?

I have a Linux Box as in my sig. Connected to an adsl router - wired connection. And a Linux Laptop which connects to the router for internet via wireless access point.

What I want to do, it to share file between the two computers. Really all I need is for the Laptop to be able to access the Main Box and not the other way around. And by access, I don’t mean like remote access control, I just mean to one specific .dir

I’m NOT a network whiz by any stretch of the imagination.

If someone could point me in the right direction please. I have read swerdna’s pages but feel unsure as it seems to focus on shares between windows and linux. Whereas, both my units run OS11.

Thanks

Hi
Just use the fish (sftp) command in konqueror then create a bookmark?

fish://username@server/path/to/the/directory

You just need to ensure the ssh port is opened via the firewall.

If you create an ssh key, you can do passwordless login.

Now in Gnome, you use sftp and it creates a desktop icon as a mount
point not sure if KDE does this.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.16-0.1-default
up 16:39, 1 user, load average: 0.03, 0.15, 0.13
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

Thanks for taking time to reply.

So to clarify:

On my box I need to allow ssh and open port in firewall.

This section:
fish://username@server/path/to/the/directory
This is from the Laptop?
And username=my box username?
server=?

? the dir I point to : does anything need to be done to that to allow sharing?

I would give nfs a go. Really easy to setup, once implemented you will be able to mount a share from one box to the other.

Linux NFS-HOWTO

or use scp to copy files between the boxes.

From host to dest
scp filename root@destination:/destdirectory

From dest to host from host
scp root@destination:/dir/filename /local/directory

hth
J

Yes from laptop enter this into konqueror or dolphin address bar. Username is your box username and server is your box ip address. Path should be something like: /home/username/whatever dir. There is also a gui dialog in konqueror and in dolphin that creates icon for your connection, so all you have to to is click that icon and it connects automatically. This dialog is in network folder.

Sorry so slow getting in a reply.

This totally works!! Brilliant. Thanks!!

Now I have this working. All I do after entering the user@…- to login, is enter my user password.

What I want to know is - How secure am I?

Normally, in the past, I have ssh disabled. Now it’s ON and the ports are open. I want to make sure I’m as secure as possible.

Any advice on this aspect would be most welcome. Thanks friends.

Hi
From the ssh man page;
“secure encrypted communications between two untrusted hosts over an
insecure network”

From the sftp man page;
“sftp is an interactive file transfer program, similar to ftp(1), which
performs all operations over an encrypted ssh(1) transport.”

As long as it’s on your internal network and you have a firewall to the
internel and port 22 isn’t open you will be fine. Now if you want
external access, either run ssh on another port or use a different port
on your router and port forward eg 10222(external)->22(internal).


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.16-0.1-default
up 7:04, 1 user, load average: 0.61, 0.29, 0.23
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.80

Thanks again for great advice.
All sorted!