Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strani problemi di rete locale...[RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
RenfildDust
Guru
Guru


Joined: 22 Nov 2003
Posts: 321
Location: Reggio Calabria - Catania - Roma

PostPosted: Thu Jan 22, 2004 10:58 am    Post subject: Strani problemi di rete locale...[RISOLTO] Reply with quote

Questo è l'ouput di ifconfig:
Code:

#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:C0:9F:2D:91:60 
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:4 Base address:0x1800

eth1      Link encap:Ethernet  HWaddr 00:60:4C:17:23:42 
          inet addr:192.168.60.30  Bcast:192.168.60.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:32235 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37205 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:12772268 (12.1 Mb)  TX bytes:14503776 (13.8 Mb)

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:656 errors:0 dropped:0 overruns:0 frame:0
          TX packets:656 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:32800 (32.0 Kb)  TX bytes:32800 (32.0 Kb)

ppp0      Link encap:Point-to-Point Protocol 
          inet addr:82.84.35.147  P-t-P:213.205.16.41  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:32159 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37128 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:12191244 (11.6 Mb)  TX bytes:13758959 (13.1 Mb)

eht1 è il modem adsl. Il mio dubbio è chi ha assegnato alla scheda di rete (eth0) l'IP 192.168.0.2?
Solitamente (altre distro) lo attivavo io con (per esempio)
Code:
#ifconfig eth0 192.168.0.2 netmask 255.255.255.0

Il secondo problema è il demonse ssh:
Code:

#sshd
Could not load host key: /etc/ssh/ssh_host_key
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disablinbg protocol version 1. Could not load host key
Disablinbg protocol version 2. Could not load host key
sshd: no hostkeys avaible -- exiting.

Ho provato a smanettare su i files /etc/ssh/ssh_config e /etc/ssh/ssh_config provando anche a togliere tutto ciò che conteneva keys ed rsa, ma niente...
_________________
La generazione di numeri casuali è troppo importante per essere lasciata al caso.


Last edited by RenfildDust on Thu Jan 22, 2004 1:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Thu Jan 22, 2004 11:07 am    Post subject: Re: Strani problemi di rete locale... Reply with quote

RenfildDust wrote:
eht1 è il modem adsl. Il mio dubbio è chi ha assegnato alla scheda di rete (eth0) l'IP 192.168.0.2?

Forse il file /etc/conf.d/net?

RenfildDust wrote:
Il secondo problema è il demonse ssh:

Ho provato a smanettare su i files /etc/ssh/ssh_config e /etc/ssh/ssh_config provando anche a togliere tutto ciò che conteneva keys ed rsa, ma niente...

Hai provato a ricreare le key con
Code:
# ssh-keygen

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
RenfildDust
Guru
Guru


Joined: 22 Nov 2003
Posts: 321
Location: Reggio Calabria - Catania - Roma

PostPosted: Thu Jan 22, 2004 11:20 am    Post subject: Re: Strani problemi di rete locale... Reply with quote

fedeliallalinea wrote:
RenfildDust wrote:
eht1 è il modem adsl. Il mio dubbio è chi ha assegnato alla scheda di rete (eth0) l'IP 192.168.0.2?

Forse il file /etc/conf.d/net?

Mi sa che è statoproprio lui! :wink:
Grazie!

Per quanto riguarda sshd, adesso ho provato:
[code]#ssh-keygen -t rsa[code]
Ma il risultato è lo stesso..
(Non ho molta confidenza con ssh.. 8O )
_________________
La generazione di numeri casuali è troppo importante per essere lasciata al caso.
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Thu Jan 22, 2004 1:13 pm    Post subject: Reply with quote

prova a lanciare ssh con
Code:
# /etc/init.d/sshd start

visto che lanciando
Code:
# sshd
esegui soltanto il demone in /usr/sbin/sshd...
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
RenfildDust
Guru
Guru


Joined: 22 Nov 2003
Posts: 321
Location: Reggio Calabria - Catania - Roma

PostPosted: Thu Jan 22, 2004 1:41 pm    Post subject: Reply with quote

Peach wrote:
prova a lanciare ssh con
Code:
# /etc/init.d/sshd start


Ottimo suggerimento.. lo script crea le chiavi e tutto il resto.. solo che le ultime due righe di output (e la successiva esecuzione di #/etc/init.d/sshd start ):
Code:

 * Starting sshd...
Missing privilege separation directory: /var/empty                                            [  !!  ]


...Aspetta un'attimo.. Provo a creare /var/empty...
Funziona!
Code:

 * Starting sshd...                                                                                          [  ok  ]

Grazie a tutti!!!
_________________
La generazione di numeri casuali è troppo importante per essere lasciata al caso.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum