Pagina 1 di 1

[Risolto]Impossibile connettersi tramite ssh

Inviato: domenica 9 gennaio 2011, 18:36
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?  ::)

Re: Impossibile connettersi tramite ssh

Inviato: domenica 9 gennaio 2011, 18:49
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?

Re: Impossibile connettersi tramite ssh

Inviato: lunedì 10 gennaio 2011, 0:58
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

:)

Re: Impossibile connettersi tramite ssh

Inviato: giovedì 13 gennaio 2011, 19:32
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.  ::)

Re: Impossibile connettersi tramite ssh

Inviato: giovedì 13 gennaio 2011, 20:05
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

Re: Impossibile connettersi tramite ssh

Inviato: venerdì 14 gennaio 2011, 19:32
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.

Re: Impossibile connettersi tramite ssh

Inviato: venerdì 14 gennaio 2011, 20:15
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  :)

Re: Impossibile connettersi tramite ssh

Inviato: venerdì 14 gennaio 2011, 21:47
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.....

Re: Impossibile connettersi tramite ssh

Inviato: venerdì 14 gennaio 2011, 23:32
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.

Re: Impossibile connettersi tramite ssh

Inviato: domenica 16 gennaio 2011, 21:00
da chrys_004
oooooooookkkkkkkkkkk!!!  (good) (good) (good)

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

Metto Risolto al post!