[Risolto]Impossibile connettersi tramite ssh

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
Scrivi risposta
chrys_004
Prode Principiante
Messaggi: 110
Iscrizione: mercoledì 6 ottobre 2010, 23:33

[Risolto]Impossibile connettersi tramite ssh

Messaggio da chrys_004 »

Ho configurato un server per comandarlo da shell in remoto, ma non riesco a effettuare il log da ubuntu. Da winzozz tutto bene, uso PUTTY, ma da ubuntu non ne vuole sapere di connettersi.  >:(  >:(
Qualcuno mi da una mano?  ::)
Ultima modifica di Anonymous il domenica 16 gennaio 2011, 21:00, modificato 1 volta in totale.
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: Impossibile connettersi tramite ssh

Messaggio da ReMichael »

Cerca di dare maggiori informazioni.. utilizzi il comando ssh da console per connetterti? se sì, posta quello che scrivi e l'errore che ti esce. Il client e il server sono nella stessa rete locale?
Ptah
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1269
Iscrizione: mercoledì 13 dicembre 2006, 13:19
Contatti:

Re: Impossibile connettersi tramite ssh

Messaggio da Ptah »

A occhio usi un utente sbagliato per connetteri da ubuntu.
Sul server, ad esempio, hai configurato l'utente ciccio e sul client stai tentando una login con l'utente pippo...
Server: 123.456.789 utente ssh: ciccio
Client: utente di console: pippo
Comando ssh corretto: ssh 123.456.789 -l ciccio

:)
Non sono chi dico di essere ;) || Problema risolto?Metti [RISOLTO] nel titolo ;)
Script per Firewall Iptables
Guida Php ufficiale (in inglese)
chrys_004
Prode Principiante
Messaggi: 110
Iscrizione: mercoledì 6 ottobre 2010, 23:33

Re: Impossibile connettersi tramite ssh

Messaggio da chrys_004 »

Si..si...scusa...... allora.....:
mi connetto tranquillamente da windows con putty, e con ubuntu uso il "virtualizzatore di desktop remoti".
protocollo: ssh
host"192.168.1.108 (indirizzo server)
nome utente: server-carcio

Questo è l'errore: "La connessione all'host «192.168.1.108» è stata chiusa."

Il problema è che prima che formattassi il server mi connettevo tranquillamente.  ::)
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: Impossibile connettersi tramite ssh

Messaggio da ReMichael »

chrys_004 ha scritto: Si..si...scusa...... allora.....:
mi connetto tranquillamente da windows con putty, e con ubuntu uso il "virtualizzatore di desktop remoti".
protocollo: ssh
host"192.168.1.108 (indirizzo server)
nome utente: server-carcio

Questo è l'errore: "La connessione all'host «192.168.1.108» è stata chiusa."

Il problema è che prima che formattassi il server mi connettevo tranquillamente.   ::)
forse hai nei known_hosts il riferimento al vecchio sistema sul server. connettiti da terminale per vedere se è così:

Codice: Seleziona tutto

ssh server-carcio@192.168.1.108
chrys_004
Prode Principiante
Messaggi: 110
Iscrizione: mercoledì 6 ottobre 2010, 23:33

Re: Impossibile connettersi tramite ssh

Messaggio da chrys_004 »

Questo è l'output:

Codice: Seleziona tutto

christian@ubuntu:~$ sudo ssh server-carcio@192.168.1.108
[sudo] password for christian: 
The authenticity of host '192.168.1.108 (192.168.1.108)' can't be established.
RSA key fingerprint is bc:6e:1c:75:5d:9e:28:c0:d4:99:33:d5:a9:44:e4:e3.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.108' (RSA) to the list of known hosts.
server-carcio@192.168.1.108's password: 
Linux server-carcio 2.6.24-26-server #1 SMP Tue Dec 1 19:19:20 UTC 2009 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
You have new mail.
Last login: Fri Jan 14 08:04:47 2011
server-carcio@server-carcio:~$ 
però con il "visualizatore desktop remoto" non riesco ancora a connettermi.
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: Impossibile connettersi tramite ssh

Messaggio da ReMichael »

chrys_004 ha scritto: Questo è l'output:

Codice: Seleziona tutto

christian@ubuntu:~$ sudo ssh server-carcio@192.168.1.108
[sudo] password for christian: 
The authenticity of host '192.168.1.108 (192.168.1.108)' can't be established.
RSA key fingerprint is bc:6e:1c:75:5d:9e:28:c0:d4:99:33:d5:a9:44:e4:e3.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.108' (RSA) to the list of known hosts.
server-carcio@192.168.1.108's password: 
Linux server-carcio 2.6.24-26-server #1 SMP Tue Dec 1 19:19:20 UTC 2009 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
You have new mail.
Last login: Fri Jan 14 08:04:47 2011
server-carcio@server-carcio:~$ 
però con il "visualizatore desktop remoto" non riesco ancora a connettermi.
prova il comando che ti ho scritto senza sudo  :)
chrys_004
Prode Principiante
Messaggi: 110
Iscrizione: mercoledì 6 ottobre 2010, 23:33

Re: Impossibile connettersi tramite ssh

Messaggio da chrys_004 »

Codice: Seleziona tutto

christian@ubuntu:~$ ssh server-carcio@192.168.1.108
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
bc:6e:1c:75:5d:9e:28:c0:d4:99:33:d5:a9:44:e4:e3.
Please contact your system administrator.
Add correct host key in /home/christian/.ssh/known_hosts to get rid of this message.
Offending key in /home/christian/.ssh/known_hosts:1
RSA host key for 192.168.1.108 has changed and you have requested strict checking.
Host key verification failed.
christian@ubuntu:~$ 
Sembra che abbia memorizzato ancora la vecchia chiave.....
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: Impossibile connettersi tramite ssh

Messaggio da ReMichael »

chrys_004 ha scritto:

Codice: Seleziona tutto

christian@ubuntu:~$ ssh server-carcio@192.168.1.108
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
bc:6e:1c:75:5d:9e:28:c0:d4:99:33:d5:a9:44:e4:e3.
Please contact your system administrator.
Add correct host key in /home/christian/.ssh/known_hosts to get rid of this message.
Offending key in /home/christian/.ssh/known_hosts:1
RSA host key for 192.168.1.108 has changed and you have requested strict checking.
Host key verification failed.
christian@ubuntu:~$ 
Sembra che abbia memorizzato ancora la vecchia chiave.....
esatto, è proprio questo il problema. apri il file /home/christian/.ssh/known_hosts e togli la prima riga. poi dovrebbe funzionare.
chrys_004
Prode Principiante
Messaggi: 110
Iscrizione: mercoledì 6 ottobre 2010, 23:33

Re: Impossibile connettersi tramite ssh

Messaggio da chrys_004 »

oooooooookkkkkkkkkkk!!!  (good) (good) (good)

è proprio come hai detto! GRAZIE 1000!!!!

Metto Risolto al post!
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 1 ospite