wtorek grudzień 02, 2008
ssh w solaris 10
Jeżeli spotkał Was taki błąd jak poniżej:
-bash-3.00$ ssh -v -l root solaris.sun.com
Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
debug1: Reading configuration data /export/home/bob/.ssh/config
debug1: Applying options for m5000-2-xscf.sunsolutioncenter.de
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Executing proxy command: exec /usr/lib/ssh/ssh-http-proxy-connect -h proxy.sun.com -p 8080 solaris.sun.com 22
debug1: identity file /export/home/bob/.ssh/identity type -1
debug1: identity file /export/home/bob/.ssh/id_rsa type -1
debug1: identity file /export/home/bob/.ssh/id_dsa type -1
HTTP/1.1 400 Bad Request
ssh_exchange_identification: Connection closed by remote host
debug1: Calling cleanup 0x341a8(0x0)
Oznacza to, że ssh-http-proxy-connect posługuje się protokołem HTTP/1.1 zamiast HTTP/1.0.
Żeby poprawić ten błąd, należy nałożyć mały patch na /usr/lib/ssh/ssh-http-proxy-connect:
Robimy to tak:
-bash# cp ssh-http-proxy-connect ssh-http-proxy-connect.orig
-bash# cat ssh-http-proxy-connect.orig | perl -npe "s|HTTP/1.1|HTTP/1.0|g" > ssh-http-proxy-connect
I już wszystko powinno działać.
Posted at 09:40PM gru 02, 2008 by Maciej Browarski in SUN Solaris | Comments[0]