Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSH da remoto
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
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Thu May 26, 2005 3:45 pm    Post subject: SSH da remoto Reply with quote

Questa è la mia situazione.Ho un Router collegato a due Pc.
Vorrei connettermi ad uno dei due pc con SSH da un PC che sta fuori dalla mia rete locale.
Potete suggerirmi una guida o darmi qualche consiglio su come procedere??
Fin'ora sono riuscito a connettermi solo tra pc appartenenti alla stessa rete LAN.
Grazie!

Ps. Ho già cercato qualche guida a riguardo ma senza risultati..:(
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Thu May 26, 2005 3:50 pm    Post subject: Reply with quote

Dal tool di configurazione del router (di solito via web) devi redirigere la porta 22 sia UDP che TCP ad ll computer a cui ti vuoi collegare dall'esterno. Cosi' poi digitando l'ip del tuo computer ti collegherai a quel pc. lo stesso vale per gli altri servizi come http o ftp, solo che sono porte diverse.
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30940
Location: here

PostPosted: Thu May 26, 2005 3:50 pm    Post subject: Reply with quote

Devi configurare il tuo ruter in modo associ la porta ssh a uno dei due pc interni
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Thu May 26, 2005 3:52 pm    Post subject: Reply with quote

......ovvero devi fare DNAT (Destination Network Address Translation)
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Thu Jul 28, 2005 10:13 pm    Post subject: Reply with quote

Mi scuso in anticipo se ritorno ad un vecchio topic, ma purtroppo non ho ancora risolto.
Allora, ho configurato tra le regole del firewall.
Code:
Servizi in Uscita:
SSH (TCP/UDP):22 Consenti Sempre
Servizi in Entrata:
SSH (TCP/UDP):22 Consenti Sempre,  Invia verso indirizzo ip xxx.xxx.xxx.xxx (ip del pc server)

Effettuando però ssh xxx.xxx.xxx.xxx dove quest'ultimo è l'ip del router mi dice: "Connection Refused"
Come mai???
Altra cosa..
Sapete per caso quali sono le porte che usa mldonkey per emule???
Grazie!
Back to top
View user's profile Send private message
u238
Guru
Guru


Joined: 04 Mar 2005
Posts: 373

PostPosted: Thu Jul 28, 2005 10:16 pm    Post subject: Reply with quote

uhm.. sembra corretto... prova a riavviare il router, magari non ti ha salvato le impostazioni.. il mio ogni tanto mi fa questi scherzi...
Back to top
View user's profile Send private message
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Thu Jul 28, 2005 10:44 pm    Post subject: Reply with quote

Niente da fare..Mi fa rimanere in attesa qualche secondo poi mi dice che la connessione è stata rifiutata.
Non è che c'è da configurare qlc all'interno del file di configurazione di ssh nel pc server???
Grazie ancora per l'aiuto!
Back to top
View user's profile Send private message
neon
l33t
l33t


Joined: 04 Aug 2003
Posts: 759
Location: Catania, Italy, Europe

PostPosted: Thu Jul 28, 2005 11:23 pm    Post subject: Reply with quote

In entrata e' giusto, ma in uscita serve? (non credo)
edit: ho letto meglio, ci sono due voci: consenti sempre e redirigi verso (forse il tuo router fa NAT e filter con una unica config, in quel caso i settaggi sono ok)

Controlla che il router non abbia porte filtrate, nel mio ad esempio dopo aver attivato il NAT ho dovuto togliere il filtro alle porte di default ovviamente chiuse.

nmappa il tuo router dall'esterno, magari ottieni qualche info in piu'
_________________
Io credo che le tecnologie siano moralmente neutrali fino a quando non le utilizziamo - William Gibson

LINEE GUIDA DEL FORUM
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Thu Jul 28, 2005 11:48 pm    Post subject: Reply with quote

neon wrote:
In entrata e' giusto, ma in uscita serve? (non credo)

di default solitamente nei router la policy per il traffico in uscita è consenti tutto
ovviamente puoi intervenire per, al limite, ottenere l'effetto contrario o limitare
certi aspetti
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
diego_82
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 257
Location: Londra

PostPosted: Fri Jul 29, 2005 10:00 am    Post subject: Reply with quote

Non è che per caso hai il firewall sulla macchina che interessa attivato?
Back to top
View user's profile Send private message
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Fri Jul 29, 2005 11:58 am    Post subject: Reply with quote

diego_82 wrote:
Non è che per caso hai il firewall sulla macchina che interessa attivato?

No niente da fare non riesco a capire il xchè non funge.
Non ho nessun firewall installato tranne che nel router. :( :(
Back to top
View user's profile Send private message
u238
Guru
Guru


Joined: 04 Mar 2005
Posts: 373

PostPosted: Fri Jul 29, 2005 4:54 pm    Post subject: Reply with quote

allora hai sbagliato qualcosa nei settaggi del router... prova a trappolarci! ;)
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