connect.c is the simple relaying command to make network connection via SOCKS and https proxy. It is mainly intended to be used as proxy command of OpenSSH. You can make SSH session beyond the firewall with this command,
Features of connect.c are:
- Supports SOCKS (version 4/4a/5) and https CONNECT method.
- Supports NO-AUTH and USERPASS authentication of SOCKS
- You can input password from tty, ssh-askpass or environment variable.
- Run on UNIX or Windows platform.
- You can compile with various C compiler (cc, gcc, Visual C, Borland C. etc.)
- Simple and general program independent from OpenSSH.
- You can also relay local socket stream instead of standard I/O.
Download source code from: http://www.taiyo.co.jp/~gotoh/ssh/connect.c
For windows user, pre-compiled binary is also available: http://www.taiyo.co.jp/~gotoh/ssh/connect.exe (compiled with MSVC)
My SSH Config
/etc/ssh/ssh_config
root@hpericrnd 21:14:22 Fri Feb 19 ssh #
pwd
/etc/ssh
root@hpericrnd 21:14:26 Fri Feb 19 ssh #
ls -lati
total 192K
2913505 drwxr-xr-x 113 root root 12K Feb 19 20:26 ../
2914713 -rw-r--r-- 1 root root 382 Feb 19 16:37 ssh_config
2914603 drwxr-xr-x 2 root root 4.0K Feb 5 15:45 ./
2915669 -rw------- 1 root root 668 Jan 13 16:46 ssh_host_dsa_key
2915670 -rw-r--r-- 1 root root 590 Jan 13 16:46 ssh_host_dsa_key.pub
2915667 -rw------- 1 root root 1.7K Jan 13 16:46 ssh_host_rsa_key
2915668 -rw-r--r-- 1 root root 382 Jan 13 16:46 ssh_host_rsa_key.pub
2915665 -rw------- 1 root root 963 Jan 13 16:46 ssh_host_key
2915666 -rw-r--r-- 1 root root 627 Jan 13 16:46 ssh_host_key.pub
2914577 -rw------- 1 root root 130K Dec 1 07:58 moduli
2914618 -rw------- 1 root root 3.3K Dec 1 07:58 sshd_config
root@hpericrnd 21:15:40 Fri Feb 19 ssh #
cat ssh_config
Host *
#ForwardAgent no
ForwardX11 no
RhostsAuthentication no
RhostsRSAAuthentication no
RSAAuthentication yes
PasswordAuthentication yes
FallBackToRsh no
UseRsh no
BatchMode no
CheckHostIP yes
StrictHostKeyChecking no
IdentityFile ~/.ssh/identity
Port 22
Cipher blowfish
EscapeChar ~
Host *.domain.com
ForwardAgent yes
ProxyCommand /usr/local/bin/connect -S localhost:1081 %h %p
Then I will
ssh -D 1081 -p 22 hoppingstation.com
Yes!!!!