Another problem with network

jerry jturba at nethere.com
Wed Jun 28 18:46:16 UTC 2006


Andreas Ruppen wrote:
>> I just installed kubuntu and everything went well. The only problem (so
>> far) is that I can't ping or ssh to my other computer. I can ping and
>> ssh into kubuntu from the other linux computer.
>>
>> I can ping localhost (kubuntu) and I am on dialup and can use the net
>> without problem.
> Since internet seems to work a assume that 
> 1) for the ping its a routing problem. When you type "netstat -r" you should
> get something like:
> Table de routage IP du noyau
> Destination     Passerelle      Genmask         Indic   MSS FenĂȘtre irtt
> Iface
> 192.168.1.0     *               255.255.255.248 U         0 0          0
> eth0
> 192.168.185.0   *               255.255.255.0   U         0 0          0
> eth1
> default         192.168.1.1     0.0.0.0         UG        0 0          0
> eth0
> exceptc that eth0 sould be ppp0 for you and wlan0 should be eth0.



jerry at backup:~ $ netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt 
Iface
localnet        *               255.255.255.0   U         0 0          0 
eth0


> if you are missing the first route you can try adding it by hand
> run as sudo:
> route add -net 192.168.1.0 mask 255.255.255.0
> (if nothing works after remove the rule with route del -net 192.168.1.0)
> 

jerry at backup:~ $ sudo route add -net 192.168.1.0 mask 255.255.255.0
Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric 
M] [[dev] If]
        inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M]
                               [netmask N] [mss Mss] [window W] [irtt I]
                               [mod] [dyn] [reinstate] [[dev] If]
        inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject
        inet_route [-FC] flush      NOT supported


> 2) for the ssh issue is sshd running on the other machine?
> try /etc/init.d/ssh start (as sudo).

jerry at backup:~ $ sudo /etc/init.d/ssh start
  * Starting OpenBSD Secure Shell server... 
                       [fail]
jerry at backup:~ $ sudo /etc/init.d/ssh stop
  * Stopping OpenBSD Secure Shell server... 
                       [ ok ]
jerry at backup:~ $ sudo /etc/init.d/ssh start
  * Starting OpenBSD Secure Shell server... 
                       [ ok ]


> BUT TRY FIST FIX THE PING ISSUE. Cause your line timed out.
> 
>> jerry at backup:~ $ cat /etc/ssh/ssh_config
>> #       $OpenBSD: ssh_config,v 1.20 2005/01/28 09:45:53 dtucker Exp $
>>
> [snip] 
> i'm not a specialist but my file looks like this
> 
> Host *
> #   ForwardAgent no
> #   ForwardX11 no
> #   ForwardX11Trusted yes
> #   RhostsRSAAuthentication no
> #   RSAAuthentication yes
> #   PasswordAuthentication yes
> #   HostbasedAuthentication no
> #   BatchMode no
> #   CheckHostIP yes
> #   AddressFamily any
> #   ConnectTimeout 0
> #   StrictHostKeyChecking ask
> #   IdentityFile ~/.ssh/identity
> #   IdentityFile ~/.ssh/id_rsa
> #   IdentityFile ~/.ssh/id_dsa
> #   Port 22
> #   Protocol 2,1
> #   Cipher 3des
> #   Ciphers
> aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
> #   EscapeChar ~
>     SendEnv LANG LC_*
>     HashKnownHosts yes
> 

I added your last 2 lines to my ssh_config but no luck.

Can I assume that port 22 is open on the other computer to receive ssh 
if it can send through ssh?

I have been trying a lot of changes to various networking files. After a 
change is all I need to do is restart /etc/init.d/ssh  or networking?

Thanks for you help Andreas

Jerry




More information about the kubuntu-users mailing list