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.
I have spent labor day setting up my Linux-based network, and have been stuck for a few hours on this:
I have a Window$ PC from which I would like to transfer data to my Linux box. I plan to do this via SSH (using putty from my Window$ machine).
I have connected both ethernet cards together (Linux Box - To - Windows Box), and I am trying to configure them as a LAN.
So, after searching the Internet I have tried:
# ifconfig eth0 192.168.1.2 netmask 255.255.255.0
# route add default gw 192.168.1.1 eth0
And then setting the Window$ Box to:
IP: 192.168.1.1
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
DNS Server: 192.168.1.1
I know this was probably stupid to do, so if you can spare the time (as I am sure it takes less than 1 min to write a fix for this) I ask for your help in setting this up.
Thanks in advance.
Edit: I forgot to mention, that I do not want to setup DHCP or anything, I just want to transfer files (too big to put in any portable device). Thanks.
You don't need a putty server on Linux. You do need to install openssh. If you don't have a hub or switch, you will need to use a crossover cable.
After using ifconfig to setup an IP address, and route to set up your default route, check the output of /sbin/ifconfig. Also try pinging from one machine to the other. You will also need to open port 22 in your firewall.
Putty also supplies a version of scp and sftp that you can use for file transfers. You could also install samba and set up a share on the windows machine as well.
I have spent labor day setting up my Linux-based network, and have been stuck for a few hours on this:
I have a Window$ PC from which I would like to transfer data to my Linux box. I plan to do this via SSH (using putty from my Window$ machine).
I have connected both ethernet cards together (Linux Box - To - Windows Box), and I am trying to configure them as a LAN.
So, after searching the Internet I have tried:
# ifconfig eth0 192.168.1.2 netmask 255.255.255.0
# route add default gw 192.168.1.1 eth0
And then setting the Window$ Box to:
IP: 192.168.1.1
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
DNS Server: 192.168.1.1
I know this was probably stupid to do, so if you can spare the time (as I am sure it takes less than 1 min to write a fix for this) I ask for your help in setting this up.
Thanks in advance.
Edit: I forgot to mention, that I do not want to setup DHCP or anything, I just want to transfer files (too big to put in any portable device). Thanks.
pls provide these info:
Is it a Lan only or for internet access too..?
Cable used to connect win and linux ?
using any switch/hub/router ?
are your win and linux able to see each pther ?
you can configure samba (which is best option ) or even you can use ftp or ssh ..
Last edited by soroccoheaven; 09-04-2007 at 03:22 AM.
For one shot file copying, scp is great. Especially if you want to pull a file from another host quickly, but the source directory isn't shared. If you need to search for a file, try sftp. Once ssh is setup, scp and sftp are more convenient for ad-hoc copying between machines than setting up a new share.
If you install Cygwin, you don't need the putty client. If you install Cygwin/X, you can run a program on the Linux machine remotely, but have it display graphically in a window on the Windows machine. Using ssh, you can control two separate programs on two different remote machines. Neat!
A lazy man's way to do it is to install webmin on the Linux box and log in from the Windows box.
But.. the network needs to be configured correctly first.
I literally just wanted to transfer the files; I am familiar with ssh, putty, cygwin... I just didn't understand what was wrong with my configuration.
So, I was using just a regular Ethernet cable from Computer A (Linux) to B (Window$). As it was suggested by earlier posts I assumed that this was the problem. So I just connected a router in between Computer A (Linux) and Computer B (Window$). And I let the router take care of the LAN addressing via DHCP (I didn't do this to begin with, because I didn't think this was necessary for such a simple task).
So, I was using just a regular Ethernet cable from Computer A (Linux) to B (Window$). As it was suggested by earlier posts I assumed that this was the problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.