PDA

View Full Version : I need help networking my 2 computers



bob58
07-30-2004, 05:24 PM
Hello....I have a Gateway 900Mhz laptop running KNOPPIX 3.4 And also my DESKTOP computer, also running KNOPPIX 3.4 I would like to be able to network these 2 computers together to make it easier to transfer files between them. They are both hooked up to cat5 cable going to a Linksys router, which is connected to my cable modem. The router has 4 ports. I want to be able to use the router to network them. I have NO CLUE where to even begin doing this! I tried searching for info on the SAMBA program, but its still GREEK to me! Is it possible to get step by step instructions on how to set up my desktop as the SERVER and the laptop as the CLIENT? Is it possible to access data from them both in both directions????Any help would be appreciated!!! Thanks....bob58 :D

gruntbuggly
07-30-2004, 09:05 PM
Samba is for dealing with Windows computers, so it's not what you want.

There are probably loads of ways of transferring files. In my house I have sshd running on each PC and have used sftp to transfer small numbers of files between them from the command line. To run sshd try this as root:

dpkg-reconfigure ssh
/etc/init.d/ssh start

I'm not sure if that's exactly right. Having sshd running (on what you'd call the server) enables you to do all sorts of magic, for example type this into Konqueror on the client:

sftp://hostname/

where hostname is the name of the server.

Markus
07-30-2004, 09:27 PM
I agree with using ssh, very simple and secure.
I don't know if knoppix has keys generated but you can do it as root with:
ssh-keygen -t rsa -f /etc/ssh/ssh_host_key
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t rsa -f /etc/ssh/ssh_host_dsa_key

And if you use iptables you need lines like:
$IPTABLES -A INPUT -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT
$IPTABLES -A INPUT -i eth0 -p udp -m udp --dport 22 -j ACCEPT

To have it start at boot do: update-rc.d ssh defaults

You can access the remote computer with ssh hostname or ssh -l loginname hostname or ssh IP-number and so on.

Another thingy in konqueror is fish://loginname@hostname

BTW, gruntbuggly was right about starting it for a single session with /etc/init.d/ssh start , and you stop it with stop instead of start at the end.

bob58
08-02-2004, 05:18 PM
OK I kinda have the general idea as far as commands....but I sure could use a little further details....OK so I dont need samba...OK....So according to gruntbuggly, I have to run the following as root:

dpkg-reconfigure ssh
/etc/init.d/ssh start

What do I do from there? Am I doing this on BOTH computers or just the one I want to use as the HOST? Do I use this at command line or Konqueror? I am not sure how to access the client computer....My client [laptop] is named "gateway" and my host [desktop] is "home". How do you know if you got a connection between the two? I just dont know what I am looking for as far as a menu or instructions. So according to gruntbuggly, I type on client computer:

sftp://hostname/

is hostname the hostname of the client or server???? Sorry to sound like a moron but this really confuses me. :oops:

And in reference to Markus's post....I dont understand what you mentioned about "keys generated" and "iptables". I am COMPLETELY LOST with this stuff!!!!!! OK so my client hostname is "gateway" and myserver hostname is "home" The only thing I have ever done close to this is hook up 2 computers together with a serial cable and a program called "LAPLINK".....these were dos/win computers. If you have time PLEASE explain in a little more detail! Sorry to be difficult! :shock:

Markus
08-02-2004, 08:07 PM
Well first you might want to change the hostnames to something not so generic as host and gateway. Don't have to of course, you can use the IP when connecting. You can change it in /etc/hostname

Iptables is a firewall in linux for 2.4 and 2.6 kernels, 2.2 had ipchains which is similar.
You can have a look at:
http://www.linuxguruz.com/iptables/
http://rocky.eld.leidenuniv.nl/
http://easyfwgen.morizot.net/gen/
Or you can use a frontend for it such as firestarter, bastille, guarddog.....

RSA and DSA keys are used for the encrypted ssh tunnel and the first time you connect you have to type yes to accept the keys which are then added to ~/.ssh/known_hosts. Although you can try to connect first without generating them to see if they exist on knoppix. If you can't connect, generate them on the server as root with the commands in the earlier post.

Hostname here meant server to which you want to connect, so you can run one box as server on which you have to do all this setuping like:
update-rc.d ssh defaults (which makes ssh server run on bootup if you want this)
/etc/init.d/ssh start (which starts the server until you stop it)

On the client all you need to do is one of these:
ssh -l loginname hostname (if you have a different login, hostname means the one on the server)
ssh hostname (if the login name is the same)
ssh IP-number (if you prefer this instead of hostname)
sftp hostname (use get and put for transferring files, do man sftp)
fish://loginname@hostname (in konqueror, again you can use the IP instead of hostname)
or use sftp with konqueror as gruntbuggly said.

Here's some manuals for openssh: http://www.openssh.org/manual.html

In a nutshell do this on the server: /etc/init.d/ssh start
And this on the client: ssh IP.number.of.server

user unknown
08-03-2004, 03:32 AM
Well - iptables is a nice thing if you try to setup a firewall, but it's surely nothing for a beginner.
But you know, we're all in the firewall-hype, and while win-users really need it, we don't like to stay beside without firewall, only because the linux-worms and viruses are that rare!

And if you don't let too much servers run, and configure them right, you should be much more secure than using a windows-net without firewall.

I see two main possibilities to share files in your net: FTP, and NFS.
I'm not very well specialized on this, but I use them from time to time, to exchange files.

NFS is a networking file system, where you may look at remote files as if they where local.
Since you normally wouldn't make the whole filesystem shared, it's not much less work, than using ftp.

To test them, FTP might be more easy.
Start the ftpd 'FTP-Daemon, (=background service) on the DESKTOP:
ftpd
on the other machine, start ftp.

ftp DESKTOP

Protocoll all errors if you have questions, and try the man-pages.
It's really not complicated, but needs some time.


man ftp
man ftpd


If you're bored, read:

man exportfs
man exports
man nfs

and yes - you're welcome.

P.S.: ssh is a great tool, to start the ftpd on demand, and shut ftpd down when ready.

Make small steps in the beginning and in few months, you might want to setup a firewall too.

bob58
08-03-2004, 11:32 AM
Hi Markus, thanks for all your help.....I just have a couple more question...quoting below:

In a nutshell do this on the server: /etc/init.d/ssh start
And this on the client: ssh IP.number.of.server

How do I find the IP number on my computer? And I am not too concerned about firewall at this point. I just want to get the 2 computers to talk to each other....So I will type "/etc/init.d/ssh start" on the server at the Konsole.
And "ssh ip number of server" on the client. That should allow both computers to talk to each other and allow me to share / copy files to one another? bob58

mzilikazi
08-03-2004, 12:48 PM
As root ifconfig will tell you your i.p. address. If you want to scan your LAN for i.p.'s you could do something like:

nmap 192.168.1.1/24

Now let's say your other box is 192.168.1.101

ssh username@192.168.1.101
<passwd>

voila! you're in!

bob58
08-03-2004, 02:17 PM
ok thank you....i will try these suggestions later tonite. hopefully i will be able to connect the two computers. bob58 :lol:

Markus
08-03-2004, 02:29 PM
And "ssh ip number of server" on the client. That should allow both computers to talk to each other and allow me to share / copy files to one another? bob58
Talk to each other, yes. But if you want simple file transfer à la drag-n-drop, use fish in konqueror on the client as in:
fish://loginname@hostname or fish://loginname@ip.nu.mb.er

baldyeti
08-06-2004, 09:04 PM
Let's start with the basics and try to establish if IP connectivity works at all between your two systems, Bob. Are they both succeeding to connect to the internet through the router ? Then they would probably be getting their IP address and parameters from the router via DHCP, and live on the same network (most likely 192.168.x.y). Please issue "ifconfig eth0" and "netstat -rn" on both boxen and show us the output.

bob58
08-10-2004, 01:10 PM
Hi Baldyeti, sorry I could not repond quickly....Long weekend and I was away. Here is the IFCONFIG for my DESKTOP:

root@Home:/home/Bob# ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:5A:7D:FB:E0
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1890 (1.8 KiB) TX bytes:1522 (1.4 KiB)
Interrupt:5 Base address:0xd400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1404 (1.3 KiB) TX bytes:1404 (1.3 KiB)

And here is the NETSTAT for DESKTOP:

root@Home:/home/Bob# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0


Here is the IFCONFIG for LAPTOP:

Bob@Gateway:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:B8:38:A2:88
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1890 (1.8 KiB) TX bytes:2890 (2.8 KiB)
Interrupt:5 Base address:0x7000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2056 (2.0 KiB) TX bytes:2056 (2.0 KiB)


And here is the NETSTAT for LAPTOP:


Bob@Gateway:~$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

OK Ihope these files help......thank you for your help also....bob58

baldyeti
08-10-2004, 06:43 PM
So your machines are on 192.168.1.x and most probably get their address from the router over DHCP. So they will see each other, and I suggest you edit your /etc/hosts file on both machines adding the following two lines:


192.168.1.100 laptop
192.168.1.102 desktop

Then try 'ping laptop' from desktop and vice versa, in order to confirm basic connectivity. From there, you can follow the excellent advice given before in this thread regarding ssh/fish/scp. Except now you can use the system names (desktop/laptop) instead of numerical IP addresses. You might also want to learn more about configuring NFS or samba. The latter makes more sense if windows machines are also present on your network.

One last remark: hopefully your particular router model will keep serving each machine the same IP address based on their MAC (hardware) address. Otherwise the fixed addresses entered above in the hosts file might not be permanent, and you might need to switch to static IP configuration.

bob58
08-10-2004, 07:36 PM
Thanks Baldyeti....Gimme a couple days to get organized and I will test this all out and re post back here...thanks again...bob58

bob58
08-20-2004, 03:32 AM
Hello....I get an error when I do as root at console:

/etc/init.d/ssh start <enter> and heres what i get:


Starting OpenBSD Secure Shell server: sshd@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
Permissions 0777 for '/etc/ssh/ssh_host_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh/ssh_host_key
Could not load host key: /etc/ssh/ssh_host_key
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
Permissions 0777 for '/etc/ssh/ssh_host_rsa_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_rsa_key
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
Permissions 0777 for '/etc/ssh/ssh_host_dsa_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh/ssh_host_dsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.


I am able to 'ping each computer OK so they seem to communicate with each other. But i cannot get any other suggestions to work......I dont get above error on laptop, just desktop. I may have did a chmod -R 777 on the /etc/ folder.....

Markus
08-20-2004, 10:06 AM
Try this:

su
cd /etc/ssh
chmod 0600 ssh_host_dsa_key ssh_host_key ssh_host_rsa_key
chmod 0644 ssh_host_rsa_key.pub ssh_host_key.pub ssh_host_dsa_key.pub


I may have did a chmod -R 777 on the /etc/ folder.....
Yikes! Are you sure? If you opened all permissions I have no idea how to get them back unless you have a backup. Hopefully someone else has a solution.

bob58
08-20-2004, 11:45 AM
OK Marcus, I will try that code later when I get home. Yes I believe I did a chmod -R 777 to my "/etc" folder! I didnt know that was a permanent command! I thought after next boot-up it would revert back to default permissions. :cry: But it is only causeing problem with ssh. I will post in the General forum for advice on how to undo the chmod.

I was going crazy last night trying to get the 2 computers to communicate with each other. First, I get 2 results when I check the IP. If I do an "ifconfig" I get IP of 198.168.1.100 on desktop and IP of 198.168.1.102 on laptop. BUT I went on internet and on the "my IP" website, that checks your IP, i get a different one! I think it was something like 66.xx.xxx.xx I dont remember but it was a different number. So that confuses me. I am assuming the correct one is the ones that start with 198. I get the same number on both laptop and desktop on that website.

Also I tried ftp and i get an ftp> prompt but no matter what i type, it gives me a blank response! I tried "fish" in Konqueror and it does nothing. I tried to setup the terminal server but i get some kind of warning saying i have to start with the "-X" option or make some kind of modification to some file....I tried my best to research the MAN pages on some of this, but that was all GREEK to me too!!!!
I have never networked 2 computers before. I am not sure, even if i got it working what to expect and how to use it. At my job, we have a few network drives and its a matter of simply clicking on the "H" drive icon for example to get into that area. But inKnoppix, can I share files using the Konsole or GUI????? I dont know where to start even if I get it working.

I also tried, as suggested in another post to use the FTP DAEMON by typing "ftpd" but that gives me an error! everything suggested to me has not worked and I cant figure it out. I am sure i can get it to work with enough perserverance. But I will try the code you posted here tonite and be back in a few days to post my results....thanks...bob58 :shock:

baldyeti
08-20-2004, 01:07 PM
I may have did a chmod -R 777 on the /etc/ folder..... :roll:

Markus
08-20-2004, 03:40 PM
OK Marcus, I will try that code later when I get home. Yes I believe I did a chmod -R 777 to my "/etc" folder! I didnt know that was a permanent command! I thought after next boot-up it would revert back to default permissions. :cry: But it is only causeing problem with ssh. I will post in the General forum for advice on how to undo the chmod.I'm afraid you're up to a reinstall on that box.


First, I get 2 results when I check the IP. If I do an "ifconfig" I get IP of 198.168.1.100 on desktop and IP of 198.168.1.102 on laptop. BUT I went on internet and on the "my IP" website, that checks your IP, i get a different one!Your router acts as a dhcp server and gives out IP's like 198.168.x.y. The one starting with 66 is what your modem gets from your ISP.


I am sure i can get it to work with enough perserverance. But I will try the code you posted here tonite and be back in a few days to post my results....thanks...bob58Sorry to say, but I wouldn't put too much time down on that computer before having done a reinstall.

bob58
08-21-2004, 05:23 PM
Hi Markus....I tried your suggestion and did this on my desktop:

su
cd /etc/ssh
chmod 0600 ssh_host_dsa_key ssh_host_key ssh_host_rsa_key
chmod 0644 ssh_host_rsa_key.pub ssh_host_key.pub ssh_host_dsa_key.pub

Now if I type in "/etc/init.d/ssh start" in Konsole as root, I no longer get that error....here's what comes up:

Bob@Home:~$ su
Password:
root@Home:/home/Bob# /etc/init.d/ssh start
Starting OpenBSD Secure Shell server: sshd.
root@Home:/home/Bob#


Is that supposed to happen? If i type anything after that in Konsole it just does notheing and goes to next line. How do I know if its working? I dont get error anymore. I also tried another suggestion to use "ftpd" but it says file not found error.

So at this point i can type in /etc/init.d/ssh start and I get no more errors and it goes to next line. on my laptop, the client, i type in ssh IP.number.of.server" and same thing happens....I get no error but it goes to next prompt line in Konsole and just sits there. If I type anything and press enter it just does a carraige return and displays nothing.

Am I making some progress here!!!!! It seems that my desktop has started a "open BSD secure shell server" but what do I do now????

I also tried some of the suggestions using Konqueror but it doesnt work....I type in command at address bar and it just sits there for a few minutes then returns error saying "error connecting to blah blah...."

So if the response I get by typing at my desktop [server] "/etc/init.d/ssh start"
is" Starting OpenBSD Secure Shell server: sshd. " does that mean its working? Is that the right response i am supposed to get? If so, what do I do to look at the files/folders on the client [laptop]? And vice versa......bob58

Markus
08-21-2004, 06:03 PM
So if the response I get by typing at my desktop [server] "/etc/init.d/ssh start"
is" Starting OpenBSD Secure Shell server: sshd. " does that mean its working? Is that the right response i am supposed to get? If so, what do I do to look at the files/folders on the client [laptop]? And vice versa......bob58 Well, I'd say it's a bit strange it didn't ask for a password. You could start with connecting as user at the server to the server via ssh just to check that it works. Then try the same from the client. To find out if you're connected you can just do a ll to list files, I suppose you know what files you have on which computer. Or do uname -a or whatever. Did you manage pinging as Baldyeti suggested?
If you get connected I suggest you try with fish next.
Let me just run a sample to show how ssh works.

I'll start it with:
root@fujibox:~# /etc/init.d/ssh start
Starting OpenBSD Secure Shell server: sshd.

Then check that it's waiting for a connection:
root@fujibox:~# nmap localhost

Starting nmap 3.55 ( http://www.insecure.org/nmap/ ) at 2004-08-21 19:47 EEST
Interesting ports on mrk-fujibox (127.0.0.1):
(The 1659 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh

Nmap run completed -- 1 IP address (1 host up) scanned in 1.260 seconds

Or with:
root@fujibox:~# netstat -tap|grep LISTEN
tcp6 0 0 *:ssh *:* LISTEN 5047/sshd

Then connect as user:
markus@fujibox:~$ ssh -l jarkko fujibox
Password:
Linux fujibox 2.6.6-16.06.04 #1 Wed Jun 16 22:14:41 EEST 2004 i686 GNU/Linux

No mail.

jarkko@fujibox:~$ logout
Connection to mrk-fujibox closed.
markus@fujibox:~$

I stop it with:
root@fujibox:~# /etc/init.d/ssh stop
Stopping OpenBSD Secure Shell server: sshd.

And it's stopped:
root@fujibox:~# nmap localhost

Starting nmap 3.55 ( http://www.insecure.org/nmap/ ) at 2004-08-21 19:53 EEST
All 1660 scanned ports on fujibox (127.0.0.1) are: closed

Nmap run completed -- 1 IP address (1 host up) scanned in 1.211 seconds

bob58
08-21-2004, 06:14 PM
Hi Marcus.....OK I did what you suggested but it seems to hang up when i try to log in to my laptop...heres what comes up:

Bob@Home:~$ su
Password:
root@Home:/home/Bob# /etc/init.d/ssh start
Starting OpenBSD Secure Shell server: sshd.
root@Home:/home/Bob# nmap localhost

Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2004-08-21 13:07 EDT
Interesting ports on Home (127.0.0.1):
(The 1651 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
53/tcp open domain
68/tcp open dhcpclient
111/tcp open rpcbind
904/tcp open unknown
919/tcp open unknown
953/tcp open rndc
2049/tcp open nfs

Nmap run completed -- 1 IP address (1 host up) scanned in 0.815 seconds
root@Home:/home/Bob# ssh -l Bob Gateway

OK heres where it just displays a blank line after I log in, right above here^

Am I logging in right? Something seems funny here. My Hostname for desktop [server] is Home
and my Hostname for laptop [client] is Gateway

The prompt doesnt look right or something.....well i seem to be progressing a little anyway! I logged in by typing:

root@Home:/home/Bob# ssh -l Bob Gateway

Is that right?

Markus
08-21-2004, 06:21 PM
Am I logging in right? Something seems funny here. My Hostname for desktop [server] is Home
and my Hostname for laptop [client] is Gateway

The prompt doesnt look right or something.....well i seem to be progressing a little anyway! I logged in by typing:

root@Home:/home/Bob# ssh -l Bob Gateway

Is that right?You want to log in to the server, right? Then you need:
ssh -l login_name_as_user_on_server server_name
As I understood you configuration it would be:
ssh -l Bob Home
And you don't want to login as root!

bob58
08-21-2004, 06:29 PM
Hi again Marcus! Wow this is HARD!!! lets see....OK I am not sure what I am doing.....I did the following from the desktop:

root@Home:/home/Bob# ssh -l Bob Home
The authenticity of host 'home (127.0.0.1)' can't be established.
RSA key fingerprint is 37:3a:a0:11:d6:f5:25:21:3e:5b:8e:7c:7c:95:30:11.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'home' (RSA) to the list of known hosts.
Password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
Welcome to Knoppix (Kernel 2.4.26)


Bob@Home:~$


Not sure what this means.....Am I logged in to the desktop computer via ssh to myself???? I dont know what to do here! It seems there was some kind of error but i seem to be logged in to myself...it did ask for password this time. OK so i dont want to do this as root....OK...so I am now at "Bob@Home".......sorry to sound so confused.....well one step at a time....what are your thoughts at this point? bob58

Markus
08-21-2004, 06:32 PM
Well, the connection worked and now is the time to try it from the client with the exactly same command, or try with IP instead of Home if it doesn't work.

bob58
08-21-2004, 06:56 PM
Hi Marcus....OK let me start at beginning as I am now more confused than before. I apparently need instructions for a MORON cause I am missing something! I will do this by numbers:
1. bring up Konsole on Desktop Computer
2. log in as Root and do: /etc/init.d/ssh start
3. That brings up "starting open BSD secure shell server"
4. I did "nmap localhost" to check if its waiting for connection.
5. This is where I am confused: connect as user: "ssh -l Bob Home [or IP if Home does not work]....But why do I want to connect to Home [server, or desktop] when I am already on that computer? If I go to laptop [client] and try to do the same once I have done it on desktop, it just does a carraige return to a blank line and if i type in something, and i am not sure what to do at this point, it just returns to a blank line.
6. so do i type in " /etc/init.d/ssh start" on Desktop computer to begin with.....then go to laptop and type in "ssh -l Bob Home" to connect to the desktop? if i do this i get blank lines after the command. And it doesnt ask for password..... :shock:

bob58
08-21-2004, 07:16 PM
This is what I get when I "ping" the laptop [198.168.1.102] from Konsole from Desktop:

Bob@Home:~$ ping 198.168.1.102
PING 198.168.1.102 (198.168.1.102): 56 data bytes

And I get the same thing when I "ping" desktop [198.168.1.100] from laptop

As far as using "fish" and Konqueror" I have not succeeded. I may need more detailed instructions.....The main problem is I cant connect as user to one computer from another, but there apparently seems to be a connection of some sort....When I connect as user, I do this:

ssh -l Bob Home which seems to work when I do this from the desktop to connect as user to myself....it asks for password and goes to a command prompt....but I dont know what to do with it from there.
But if I try the same thing on laptop, seeing that I can connect to myself on desktop, I type in the same command : " ssh -l Bob [username on both computers is the same] Home to try to connect to desktop, but i get a carraige return and blank line and anything i type in at this point returns a blank line!!!
:(

OErjan
08-21-2004, 07:16 PM
froom the client computer the comand below works for me:

ssh username@ipnumber
as yoiu mentioned fish:

fish://username@ipnumber/home/username
works.
ipnumber is replaced with
192.168.1.100 for the laptop (which i assume is the client)
and
192.168.1.102 for the desktop (which in turn is the server)

Markus
08-21-2004, 07:23 PM
Hi Marcus....OK let me start at beginning as I am now more confused than before. I apparently need instructions for a MORON cause I am missing something! I will do this by numbers:
1. bring up Konsole on Desktop Computer
2. log in as Root and do: /etc/init.d/ssh start
3. That brings up "starting open BSD secure shell server"
4. I did "nmap localhost" to check if its waiting for connection. So far so good.


5. This is where I am confused: connect as user: "ssh -l Bob Home [or IP if Home does not work]....But why do I want to connect to Home [server, or desktop] when I am already on that computer?This was just to check that the connection to the server works.


If I go to laptop [client] and try to do the same once I have done it on desktop, it just does a carraige return to a blank line and if i type in something, and i am not sure what to do at this point, it just returns to a blank line. Something wrong there, it should work just as it did when you tried it on the desktop->desktop connection.


6. so do i type in " /etc/init.d/ssh start" on Desktop computer to begin with.....then go to laptop and type in "ssh -l Bob Home" to connect to the desktop? if i do this i get blank lines after the command. And it doesnt ask for password..... :shock:Perhaps you didn't wait for long enough, sometimes it takes a while, although it shouldn't.
Did you manage to ping your desktop from the laptop?????

EDIT: Rats, I was too slow at typing :)
If the username is Bob on both computers you can just use ssh IP

bob58
08-21-2004, 07:38 PM
Hey marcus thanks for all the help...i really appreciate it....but i am going to take a break for now and will attempt this later!!!!! need some fresh air!!!!! :lol: bob

bob58
08-22-2004, 12:15 AM
Hello...I thought I would post an update concerning my network woes.

After somethought, I am beginning to see what this is all about. I can enter the "/etc/init.d/ssh start" command on either the Desktop [server, 198.168.1.100] or Laptop [client, 198.168.1.102] but I can only connect to the computer I type the command on when I log in. For example on Desktop, after I type the ssh start command, I log in like this:

ssh -l Bob Home, or ssh -l 198.168.1.100 and it seems to connect OK.....I can also do the same thing on laptop:

ssh -l Bob Gateway, or ssh -l 198.168.1.102.

And after I type in the password I get this:

Warning: No xauth data; using fake authentication data for X11 forwarding.

Then It welcomes me to Knoppix and I am at command line.
What does this error mean? I cannot seem to connect to laptop from desktop in same manner and vice versa! :(

Sorry for being so detailed but I thought this would help diagnose problem. In my /etc/hosts file, I added these 2 lines:

198.168.1.100 Home
198.168.1.102 Gateway

So thats about all I can give for details......I dont know why it still wont work. But if you need further details and if anyone has any more suggestions please post them.....

Markus
08-22-2004, 09:01 AM
I'm getting out of ideas here, but there's still something wrong with the computers talking to each other. This sort of thing is what ping should return:
markus@fujibox:~$ ping -c 2 216.239.36.10
PING 216.239.36.10 (216.239.36.10) 56(84) bytes of data.
64 bytes from 216.239.36.10: icmp_seq=1 ttl=238 time=128 ms
64 bytes from 216.239.36.10: icmp_seq=2 ttl=238 time=130 ms

--- 216.239.36.10 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 128.821/129.501/130.182/0.769 ms

I think you should have a look at your router and doublecheck the IP numbers. What kind of router was it?

Harry Kuhman
08-22-2004, 09:16 AM
I think you should have a look at your router and doublecheck the IP numbers. What kind of router was it?
Actually, he's already ssaid that it's a Linksys router (model number and firmware revision not given). But yes, you have to be able to ping each other before you can hope to have anything like networking between them. Other tests to do: Can you ping the Linksys from each computer? Can you log into the router setup from each computer?

Markus
08-22-2004, 12:38 PM
Actually, he's already ssaid that it's a Linksys router (model number and firmware revision not given).My bad. If I want the model I should probably say so. But I was also fishing, ie if he'd post make&model someone with the same(ish) router might jump in and reveal the router setup if it needs tweaking.

bob58
08-23-2004, 01:45 AM
Hello Gentlemen......My router is a Linksys BESFR41 ......Not sure how to ping the linksys from each computer.....as far as logging into router from each computer for setup...I think I did that when i set it up a while ago......I will have to get the instructions on router ....not sure how to tweak the router....as far as IP numbers.....If I do "ifconfig" i get numbers which i suppose are the IP address numbers: 198.168.1.100 but there is a web site called "My Ip.com" and this is the number i get from them: 66.212.218.230 so i am confused...which number set do i use? I get the same IP number, 66.212.218.230 on BOTH computers from that web site. But if I do an "ifconfig" I get 198.168.1.100 on desktop and 198.168.1.102 on laptop.....I will get out the manual for router tomorrow after work and read it and see if i can get in to setup area on it....i remember doing that once a while ago, over a year ago. Then I will post back here tomorrow evening...bob58 :D

Harry Kuhman
08-23-2004, 02:28 AM
......Not sure how to ping the linksys from each computer.....
The router should be at 192.168.1.1 (unless you have changed it). Ping that address, you should get a response on each computer when you do. If you can't ping the router then you will not be able to ping the other computers on the network; although I expect you will be able to if you can log in to the router from each one.

...which number set do i use? I get the same IP number, 66.212.218.230 on BOTH computers from that web site. But if I do an "ifconfig" I get 198.168.1.100 on desktop and 198.168.1.102 on laptop.....
In order to let multiple computers on the local network use the Internet, even though your ISP only assigns you one IP address, the router does something called NAT - Network Address Translation. The router gets the Internet IP address and keeps it. It gives your local computers private IP addresses from a private range (192.168.1.xxx). It sets itself up as the Internet gateway. When your computer(s) whan to access an IP address outside the local lan, they send that request to the router, which builds a packet with the assigned IP address and sends it on. It also remembers which computer originated the request, so when a reply is received it can forward it on to the right computer. As far as another computer on the Internet is concerned, any computer on your network would have the ISP assigned address (in this case 66.212.218.230) because that's the address in the packets it receives and that's the address it has to reply to. But as far as your local network is concerned, each computer has a unique 192.168.xxx.xxx address. Ping each other and the router by the 192.168.xxx.xxx addresses.

bob58
08-23-2004, 02:54 AM
Hello Gentlemen, well I just could'nt wait....here is what I was able to find:

Router is Linksys BESFR41

I was able to get into the router setup program from ]each compute[/color]r by going to web browser and typing in address field: http://192.168.1.1/Passwd.htm

Then the setup screen came up and here is what I found under 'Status":

LAN mac address: 00-06-25-83-8B-91
IP Address: 192.168.1.1
Subnet mask: 255.255.255.0
DHCP server: Enabled

WAN mac address: 00-090-27-A3-99-99
IP Address: 66.212.218.230
subnet mask: 255.255.252.0
Default Gateway: 66.212.216.1
DNS: 66.212.192.40
66.212.192.41
I was able to 'PING' from desktop and laptop to the LAN and WAN IP adresses and this is what I got on each computer:

Bob@Gateway:~$ su
Password:
root@Gateway:/home/Bob# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: icmp_seq=0 ttl=150 time=0.7 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=150 time=0.6 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=150 time=0.7 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=150 time=0.7 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=150 time=0.7 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=150 time=0.7 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=150 time=0.7 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=150 time=0.7 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=150 time=0.7 ms
64 bytes from 192.168.1.1: icmp_seq=9 ttl=150 time=0.7 ms


Bob@Gateway:~$ su
Password:
root@Gateway:/home/Bob# ping 66.212.218.230
PING 66.212.218.230 (66.212.218.230): 56 data bytes
64 bytes from 66.212.218.230: icmp_seq=0 ttl=150 time=0.7 ms
64 bytes from 66.212.218.230: icmp_seq=1 ttl=150 time=0.6 ms
64 bytes from 66.212.218.230: icmp_seq=2 ttl=150 time=0.7 ms
64 bytes from 66.212.218.230: icmp_seq=3 ttl=150 time=0.7 ms
64 bytes from 66.212.218.230: icmp_seq=4 ttl=150 time=0.7 ms
64 bytes from 66.212.218.230: icmp_seq=5 ttl=150 time=0.6 ms
64 bytes from 66.212.218.230: icmp_seq=6 ttl=150 time=0.6 ms
64 bytes from 66.212.218.230: icmp_seq=7 ttl=150 time=0.6 ms
64 bytes from 66.212.218.230: icmp_seq=8 ttl=150 time=0.6 ms
64 bytes from 66.212.218.230: icmp_seq=9 ttl=150 time=0.6 ms



Even tho the above shows I pinged from root@Gateway:/home/Bob, which is my laptop, I also did same thing from desktop and got same results. So I obviously was using the wrong IP numbers. Why do I get different ones?

LAN IP: 192.168.1.1, WAN IP: 66.212.218.230, IFCONFIG IP: 198.168.1.100 [on desktop] and IFCONFIG IP: 198.168.1.102 [on laptop] and on the internet, there are websites that give your IP and I got this one: 66.212.218.230 which is the WAN IP.

So what gives with all these numbers? I must have had the wrong ones plugged in so If anyone can sort 'em out and put 'em in the proper order.....I still am not sure of the individual IP's of the desktop and laptop.....So I dont know how to ping the laptop from desktop and vice versa......I hope all this can help...thank you for all your help so far.....bob

bob58
08-23-2004, 03:04 AM
In Reply to Harry....I was reading your post and realized that I MUST have made an error copying down a number! When I did an IFCONFIG, i MISREAD the IP address on it. I thought it was 198.168.1.100 for desktop. It is 192, not 198!!! This must be the problem. So I will edit my /etc/hosts file and start over with ssh. Thats why I was getting blank lines/no response when i pinged 198.168.1.100!!!! It doesnt exist!!!!! :oops: I am sorry for all the confusion but my eyesight isnt the best! I will pay closer attention to the numbers.
OK so my next challenge is to figure out what to do once i start the ssh server.....bob58 :lol:

Harry Kuhman
08-23-2004, 03:11 AM
....I still am not sure of the individual IP's of the desktop and laptop.....So I dont know how to ping the laptop from desktop and vice versa......I hope all this can help...thank you for all your help so far.....bob
Pinging the router looks good. If you can also ping it from the other computer then your next step should be on the desktop (192.168.1.100) ping 192.168.1.102. The do the same in reverse, from the other computer ping 192.168.1.100.

If this works you have a network, the next problem is getting applications working.

If it doesn't work, I can only see 2 potential problems, either:

1) There is a firewall running on each computer blocking incoming pings (but letting outbound traffic pass fine). I don't believe this is the Knoppix default configuration. However, to be safe, if you are having this problem and you have installed Knoppix to the hard disk, try booting one of the computers from CD and ping that computer (ping from the other one) and see if you get a response back then.

2) If you can't ping a Knoppix system when booted from CD, but you can ping the router, then the only thing I can guess is that the router is very confused and is not routing traffic out to the right port. I actually just saw another user who had this problem; resetting his router resolved the issue (be sure to record and set-up information you need for the router before you do this).

Harry Kuhman
08-23-2004, 03:38 AM
Thats why I was getting blank lines/no response when i pinged 198.168.1.100!!!! It doesnt exist!!!!! :
Glad you caught it. What's worse is that that address does exist, or at least the address range does, it's assigned to a person or organization in Quebec, Canada. So if that particular address was up you might have got a ping back from it! Surprised you didn't catch it when you were entering the 192 addresses to get to the router, but at least you know now.

Markus
08-23-2004, 09:57 AM
Oh rats! I should've catched on to the IP. Well, I think your problem is getting solved now so you can start fishing :)

bob58
08-24-2004, 03:57 AM
Well thats what the problem was. When I did ifconfig i copied down the wrong IP number! :oops:
I knew something was wrong somewhere. But its working perfectly now. I can run ssh on both computers and share files betweeen them. Whew......now with that problem solved I can return to my other 2 issues. Getting optical mouse to work and Lcd monitor to work....thaks all for the help. bob58 :lol:

el_santo
10-18-2004, 11:30 AM
:cry: Please, I am just a begginer in linux, and I am having problems to configurate my IP to can use the conecction of the university, can someone give me a sugestion?

CrashedAgain
10-29-2004, 05:27 AM
Troubleshooting Fish:
Since this has been made into a sticky & it hasn't been mentioned yet, the most common problem with using Konqueror's fish protocol is when it refuses to connect to the remote computer. This is usually because the key signature from the remote does not match the signature in home/<username>/.ssh/known_hosts.
The fix is simple....just delete /home<username>/.ssh/known_hosts & attempt to reconnect. After confirmation, a new known_hosts file will be generated.

el_santo: I am not sure what you are asking. If you are attempting to connect into the university's network, I think you will have to contact their system administrator to first, get permission and second, find out what the required ip's & logons are.