SSH tunneling
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 Code:
$ ssh -v user@ssh-site -p 443 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 |
1: do you have ssh server running on port 443 on your PC? seems like either you don't or proxy can't contact your computer.
i use proxychains myself, it's simple. 2: you may connect ssh1 to ssh2 in screen session, so that when you get on ssh1 from localmachine you may continue working with ssh2. of course that method works if connection between ssh1 and ssh2 is persistent. in other way you will need to enter password twice: one for ssh1 and two for ssh2 anyways, no matter where would you choose to create tunnels. or you can use pubkey authentication which will allow you not to enter passwords always. the only password you will need to enter is one for your private key, if you have that password set inside. -- upd: btw, i think it's more of "networking" topic, rather than security. |
All times are GMT -5. The time now is 04:01 PM. |