Hi,
1 - I would like to access a site via ssh from my office. The problem is that, I'm behind a proxy that don't allow ssh connections to the outside.
I've already installed corkscrew, but I got the following error:
Code:
$ ssh -v user@ssh-site
OpenSSH_5.1p1, OpenSSL 0.9.8l 5 Nov 2009
debug1: Reading configuration data /cygdrive/h/.ssh/config
debug1: Applying options for *
debug1: Executing proxy command: exec /usr/local/bin/corkscrew 10.152.138.65 8080 a ssh-site 22
debug1: permanently_drop_suid: 189603
debug1: identity file /cygdrive/h/.ssh/identity type -1
debug1: identity file /cygdrive/h/.ssh/id_rsa type 1
Proxy could not open connnection to ssh-site: Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed.
ver is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. )
debug1: identity file /cygdrive/h/.ssh/id_dsa type 2
ssh_exchange_identification: Connection closed by remote host
I also tried through port 443, and I got the following error:
Code:
$ ssh -v user@ssh-site -p 443
OpenSSH_5.1p1, OpenSSL 0.9.8l 5 Nov 2009
debug1: Reading configuration data /cygdrive/h/.ssh/config
debug1: Applying options for *
debug1: Executing proxy command: exec /usr/local/bin/corkscrew 10.152.138.65 8080 ssh-site 443
debug1: permanently_drop_suid: 189603
debug1: identity file /cygdrive/h/.ssh/identity type -1
debug1: identity file /cygdrive/h/.ssh/id_rsa type 1
debug1: identity file /cygdrive/h/.ssh/id_dsa type 2
Proxy could not open connnection to ssh-site: Proxy Timeout ( The connection timed out. )
ssh_exchange_identification: Connection closed by remote host
10.152.138.65:8080 is the proxy server address.
How can I solve this problem?
2 -
Imagine that I have the following set of machines
localmachine --> ssh1 ---> ssh2
I access ssh1 through ssh, and inside ssh1, I access ssh2 also through ssh. If want to access ssh2 from my localmachine without having to write username and password twice, I need to create a tunnel on ssh1 to ssh2.
How many tunnels I needo to create? I only need to create a tunnel in ssh1, or I need to create a tunnel in the localmachine also?
What should I do it?
Thanks,
PSC