PDA

View Full Version : trouble fish:// ing?



A. Jorge Garcia
11-28-2004, 02:26 AM
I had to back-up my home as I messed-up my knoppix hdinstall and needed to reinstall the KNOPPIX CD with knoppix-installer. So I fished to another hdd on my home network and dragged and dropped all my home dirs on this PC to the other. OK, no problem.

So, I reinstalled KNOPPIX on this box and tried to reverse the process by copying the backed-up files from the other PC using fish again. The problem is that now I can only do so one file at a time or fish stalls out!

Anyone else have a problem with fish? Am I missing something? I've done this before with other PCs and all was a ok....

Regards,
AJG

Markus
11-28-2004, 10:52 AM
A bit of guess here but you need to allow icmp which fish uses to check the connection.

A. Jorge Garcia
11-28-2004, 04:19 PM
I enabled ssh on both PCs using

update-rc.d ssh defaults

shouldn't that set it all up to work?

TIA,
AJG

Markus
11-28-2004, 05:49 PM
I enabled ssh on both PCs using

update-rc.d ssh defaults

shouldn't that set it all up to work? It should.
Have you checked if the keys are generated on the server? If not do:
su
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

You might want to ssh in the first time from the shell with ssh login@ip_or_hostname as I'm not sure how fish accepts the keys, a popup perhaps?

EDIT: Hmm, the keys are probably fine if you can connect. Why I asked about icmp is that I once had fish stalling like you said and the solution was to accept ping in the router.

A. Jorge Garcia
11-29-2004, 01:44 AM
OK, the keys are probably OK as I can sftp and ssh from shell. I can even fish from konqueror but I can only copy one file at a time, not a whole dir or home fir for that matter!

What can I do with icmp, this is new to me.

BTW, I had reinstalled both these machines with KNOPPIX 3.6 2004.0816 and used update-rc.d before this problem started!

TIA,
AJG

CrashedAgain
11-29-2004, 03:33 AM
OK, the keys are probably OK as I can sftp and ssh from shell. I can even fish from konqueror but I can only copy one file at a time, not a whole dir or home fir for that matter!

What can I do with icmp, this is new to me.

BTW, I had reinstalled both these machines with KNOPPIX 3.6 2004.0816 and used update-rc.d before this problem started!

TIA,
AJG

I think you can ONLY fish from konqueror. Isn't fish a KDE protocol? Outside of Konq you have to use ssh.
I don't know why you can only copy one file at a time, normally I can copy multiple files or directories with fish in konqueror using drag'n'drop.
Besides regenerating the host keys as above, the other cause of problems with fish is with the known_hosts file. If fish refuses to connect (usually just gives an error 'unable to connect to <ip address>'), just delete the hidden file /home/user/.ssh/known_hosts & retry, fish will give a warning message about an unknown host then recreate the known_hosts file when you confirm to proceed.

Markus
11-29-2004, 10:53 AM
OK, the keys are probably OK as I can sftp and ssh from shell. I can even fish from konqueror but I can only copy one file at a time, not a whole dir or home fir for that matter! Ok, forget about the keys then.


What can I do with icmp, this is new to me. icmp is a protocol used by ping, although I think fish needs mtu which still goes over icmp. Have you looked in the router for any blocking of icmp/ping or tried pinging the computers?
Also do you run software firewalls, if yes: disable them just for testing.


BTW, I had reinstalled both these machines with KNOPPIX 3.6 2004.0816 and used update-rc.d before this problem started! You mean it worked before you used update-rc or before reinstalling?

Just to rule out fish, try WinSCP from a windows box.

A. Jorge Garcia
11-30-2004, 01:44 AM
I mean everything worked fine before reinstalling.

However, as far as I recall, originally I installed every PC the same way as I reinstalled them now! In other words, knoppix-installer from a liveCD boot of KNOPPIX 3.6 and then rebooting as root to update-rc.d ssh defaults not to mention editting lilo.conf for dual boot and using netcardconfig to setup DHCP.

I do all this with all my hdinstalled dual boot PCs as I find ssh, sftp and fish (in konqueror) very useful (better than telnet and ftp, BTW)! I never had a problem like this....

TIA,
AJG

Markus
11-30-2004, 08:34 AM
Sorry to say but if pinging worked and the install was just like before, I'm out of ideas.
Perhaps do a testdisk at bootup to rule out a faulty cd.

One thing more to look at is:
cat /proc/sys/net/ipv4/icmp_echo_ignore_all /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
You should get two zeros as output.

A. Jorge Garcia
12-01-2004, 01:33 AM
I give up! I don't know what's wrong with this dubm thing. I got the 2 zeros, BTW. I'll just refer to my backups on an as needed basis....

BTW, maybe I should have set-up /home in a separate partition to begin with! I've never done that. Is it hard to do?

TIA,
AJG

CrashedAgain
12-01-2004, 05:31 AM
I give up! I don't know what's wrong with this dubm thing. I got the 2 zeros, BTW. I'll just refer to my backups on an as needed basis....

TIA,
AJG

Since fish is a konqueror protocol (somebody correct me if I'm wrong on this), maybe you have a buggy konqueror. Perhaps try reinstalling konqueror: 'apt-get -t unstable install konqueror' to get the latest version.

Markus
12-01-2004, 08:56 AM
I give up! I don't know what's wrong with this dubm thing. I got the 2 zeros, BTW. I'll just refer to my backups on an as needed basis.... Oh well. I quite understand but why not try mc instead of konq.


BTW, maybe I should have set-up /home in a separate partition to begin with! I've never done that. Is it hard to do? Nope. http://www.knoppix.net/docs/index.php/HomePartitionHowTo (hope it's the correct link as Docs are down)

eco2geek
12-01-2004, 09:03 AM
Markus: Is there a tutorial somewhere to tell you how to use mc for things like ftp and samba? (No, I haven't looked at TLDP yet...maybe I should RTFM.)

Markus
12-01-2004, 09:17 AM
Sorry but I don't actually use mc much. Prefer konq. You can select - say, Left -> Ftp Link or Shell link and press F1 to see usage. It does work just like konq when you type in:
/#sh:login@domain/remote-dir

Hmm, got curious if there wasn't an easier way, no need to use the menu it seems. Chapter 7 of http://www.ibiblio.org/mc/FAQ :
7.3 How do I do anonymous ftp with MC?

Just type "cd ftp://hostname" where hostname is the name of the host
you want to connect. Alternatively, select FTP link from the Left or
Right menu and type the name of the host you want to connect.

7.4 How do I do non-anonymous ftp with MC?

Non-anonymous ftp works just like the anonymous ftp but you give the
login name with the host name. For example, type "cd
ftp://username@hostname".

7.5 How do I close an ftp connection?

Just change to a non-ftp directory. Simply typing "cd" with no
parameters is enough (it will take you to your home directory).

GNU Midnight Commander closes ftp connection automatically after a
timeout or on exit. It's possible to force disconnect by selecting
"Command" -> "Active VFS List" in the menu and using the "Free VFSs
Now" button.

A. Jorge Garcia
12-02-2004, 02:40 AM
EUREKA! Finally I have success. I had to delete the known_hosts file so a new one could be generated. Something was wrong with it. In konqueror, fish would just say error connecting to host. From the shell in ssh I got some wierd message about "the man in the middle security breach," or some such ploy. Well, now I can again fish whole dirs from one PC to another PC (in Linux from hda2 on one PC to hda2 on another PC on my hom LAN).

New problem: I also backed-up (using fish) my better half's MyDocuments from her WIMxP partition (from hda1 on PC1 to hda2 on PC2). Now I try to copy back that dir to the newly installed WIMxP partition (from hda2 on PC2 to hda1 on PC1) and I get the stalling problem again! This time I think its because hda1 is ro, not rw. So, after clicking the hda1 icon on the KNOPPIX desktop to mount it, I also right clicked it to change to rw. The problem is that I don't think it switched to rw so fish can't write to the partition.

In older versions of KNOPPIX, when you right click a partition to change it to rw, there was a prompt saying something to the effect: "are you sure you want to change this partition to rw?" Then if you right clicked again it would ask if you're sure you want to change that partition to ro. Now, in KNOPPIX 3.6 2004.0816, you can right-click to change to rw but there's no prompt so I don't know if its changing to rw or not!

BTW, you mentioned using ping to test my LAN and all pinged fine. I can ping from on home PC to another over my router (from 192.168.0.100 to 192.168.0.101 and back, etc). Shouldn't I be able to ping my PC at work (that I ssh to from home all the time)? When I try, ping returns nothing....

What can I do about this?

TIA,
AJG

CrashedAgain
12-02-2004, 04:50 AM
EUREKA! Finally I have success. I had to delete the known_hosts file so a new one could be generated.

Don't want to sound like a smarty but didn't I say that day before yesterday!

[/quote] Something was wrong with it. [/quote]

Actually, nothing wrong with it. What happens is when you regenerate the host keys on either machine it or reinstall /upgrade ssh it generates new ID codes which do not match what known_hosts file expects so it refuses entry. The error messages you got are normal for when this happens.



New problem: I also backed-up (using fish) my better half's MyDocuments from her WIMxP partition (from hda1 on PC1 to hda2 on PC2). Now I try to copy back that dir to the newly installed WIMxP partition (from hda2 on PC2 to hda1 on PC1) and I get the stalling problem again! This time I think its because hda1 is ro, not rw. So, after clicking the hda1 icon on the KNOPPIX desktop to mount it, I also right clicked it to change to rw. The problem is that I don't think it switched to rw so fish can't write to the partition.


ALARMS BELLS!!!! Do not attempt to write to a ntfs filesystem.
Use captive ntfs or you will damage the ntfs system. I'm not sure but I think all you have to do is 'mount -t captive-ntfs /dev/hda1 /mnt/hda1 '. Can't check, I have no ntfs systems.


In older versions of KNOPPIX, when you right click a partition to change it to rw, there was a prompt saying something to the effect: "are you sure you want to change this partition to rw?" Then if you right clicked again it would ask if you're sure you want to change that partition to ro. Now, in KNOPPIX 3.6 2004.0816, you can right-click to change to rw but there's no prompt so I don't know if its changing to rw or not!


I have found that the 'change to rw' action doesn't always work when installed to HD. Easier to just open a console & type 'mount -rw /dev/hda7'. If it's already mounted the command is 'mount -o remount, rw /dev/hda7' but it's easier to just 'umount /dev/hda7' then 'mount -rw /dev/hda7' if you're memory is like mine. Once again, do not attempt to write to a normally mounted ntfs partition.



BTW, you mentioned using ping to test my LAN and all pinged fine. I can ping from on home PC to another over my router (from 192.168.0.100 to 192.168.0.101 and back, etc). Shouldn't I be able to ping my PC at work (that I ssh to from home all the time)? When I try, ping returns nothing....


If you can ssh, you should be able to ping. and fish too (if it is running kde). Perhaps you have firewalls???You should also be able to ping internet addresses (try google: 216.239.57.99) .

A. Jorge Garcia
12-03-2004, 02:33 AM
Yes, yes, carshedAgain, thank you, I was trying to give you credit for helping me, but I guess I wasn't specific enough!

BTW, don't worry, I run a FAT32 shop at home and at work. Any PC I get that isn't partitioned hda1 as fat32 and hda2 as ext2 and hda3 as linux swap gets fixed by me right away....

Regards,
A. Jorge Garcia